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
e9436da6
Kaydet (Commit)
e9436da6
authored
Ock 09, 2000
tarafından
Greg Ward
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Typo fix: 'file.warn' should have been 'manifest.warn' in a couple of places.
üst
d08833ff
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
dist.py
Lib/distutils/command/dist.py
+5
-5
No files found.
Lib/distutils/command/dist.py
Dosyayı görüntüle @
e9436da6
...
...
@@ -338,8 +338,8 @@ class Dist (Command):
# pattern
if
os
.
path
.
isdir
(
words
[
0
]):
if
exclude
:
file
.
warn
(
"exclude (!) doesn't apply to "
+
"whole directory trees"
)
manifest
.
warn
(
"exclude (!) doesn't apply to "
+
"whole directory trees"
)
continue
dir_files
=
self
.
search_dir
(
words
[
0
],
words
[
1
:])
...
...
@@ -348,8 +348,8 @@ class Dist (Command):
# Multiple words in pattern: that's a no-no unless the first
# word is a directory name
elif
len
(
words
)
>
1
:
file
.
warn
(
"can't have multiple words unless first word "
+
"('
%
s') is a directory name"
%
words
[
0
])
manifest
.
warn
(
"can't have multiple words unless first word "
+
"('
%
s') is a directory name"
%
words
[
0
])
continue
# Single word, no bang: it's a "simple include pattern"
...
...
@@ -364,7 +364,7 @@ class Dist (Command):
# Single word prefixed with a bang: it's a "simple exclude pattern"
else
:
if
self
.
exclude_files
(
pattern
)
==
0
:
file
.
warn
(
"no files excluded by '
%
s'"
%
pattern
)
manifest
.
warn
(
"no files excluded by '
%
s'"
%
pattern
)
# if/elif/.../else on 'pattern'
...
...
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