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
c019e2c7
Kaydet (Commit)
c019e2c7
authored
Tem 30, 2000
tarafından
Greg Ward
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Ditched the unused 'recursive_exclude_pattern()' method.
üst
0f341855
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
24 deletions
+0
-24
filelist.py
Lib/distutils/filelist.py
+0
-24
No files found.
Lib/distutils/filelist.py
Dosyayı görüntüle @
c019e2c7
...
...
@@ -248,30 +248,6 @@ class FileList:
# exclude_pattern ()
def
recursive_exclude_pattern
(
self
,
dir
,
pattern
=
None
):
"""Remove filenames from 'self.files' that are under 'dir' and
whose basenames match 'pattern'.
Return 1 if files are found.
"""
files_found
=
0
self
.
debug_print
(
"recursive_exclude_pattern: dir=
%
s, pattern=
%
s"
%
(
dir
,
pattern
))
if
pattern
is
None
:
pattern_re
=
None
else
:
pattern_re
=
translate_pattern
(
pattern
)
for
i
in
range
(
len
(
self
.
files
)
-
1
,
-
1
,
-
1
):
(
cur_dir
,
cur_base
)
=
os
.
path
.
split
(
self
.
files
[
i
])
if
(
cur_dir
==
dir
and
(
pattern_re
is
None
or
pattern_re
.
match
(
cur_base
))):
self
.
debug_print
(
"removing
%
s"
%
self
.
files
[
i
])
del
self
.
files
[
i
]
files_found
=
1
return
files_found
# class FileList
...
...
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