Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
aa5372ca
Kaydet (Commit)
aa5372ca
authored
Tem 27, 2000
tarafından
Greg Ward
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Remove unused 'search_dir()' method.
Comment tweak.
üst
7499847c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
21 deletions
+1
-21
sdist.py
Lib/distutils/command/sdist.py
+1
-21
No files found.
Lib/distutils/command/sdist.py
Dosyayı görüntüle @
aa5372ca
...
@@ -319,26 +319,6 @@ class sdist (Command):
...
@@ -319,26 +319,6 @@ class sdist (Command):
# add_defaults ()
# add_defaults ()
def
search_dir
(
self
,
dir
,
pattern
=
None
):
"""Recursively find files under 'dir' matching 'pattern' (a string
containing a Unix-style glob pattern). If 'pattern' is None, find
all files under 'dir'. Return the list of found filenames.
"""
allfiles
=
findall
(
dir
)
if
pattern
is
None
:
return
allfiles
pattern_re
=
translate_pattern
(
pattern
)
files
=
[]
for
file
in
allfiles
:
if
pattern_re
.
match
(
os
.
path
.
basename
(
file
)):
files
.
append
(
file
)
return
files
# search_dir ()
def
recursive_exclude_pattern
(
self
,
dir
,
pattern
=
None
):
def
recursive_exclude_pattern
(
self
,
dir
,
pattern
=
None
):
"""Remove filenames from 'self.files' that are under 'dir' and
"""Remove filenames from 'self.files' that are under 'dir' and
whose basenames match 'pattern'.
whose basenames match 'pattern'.
...
@@ -717,7 +697,7 @@ def findall (dir = os.curdir):
...
@@ -717,7 +697,7 @@ def findall (dir = os.curdir):
names
=
os
.
listdir
(
dir
)
names
=
os
.
listdir
(
dir
)
for
name
in
names
:
for
name
in
names
:
if
dir
!=
os
.
curdir
:
# avoid
the dreaded "./" syndrome
if
dir
!=
os
.
curdir
:
# avoid
leading "./"
fullname
=
os
.
path
.
join
(
dir
,
name
)
fullname
=
os
.
path
.
join
(
dir
,
name
)
else
:
else
:
fullname
=
name
fullname
=
name
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment