mirror of
https://github.com/python/cpython.git
synced 2025-07-24 19:54:21 +00:00
Typo fix: 'file.warn' should have been 'manifest.warn' in a couple of places.
This commit is contained in:
parent
d08833ff1d
commit
e9436da686
1 changed files with 5 additions and 5 deletions
|
@ -338,8 +338,8 @@ class Dist (Command):
|
||||||
# pattern
|
# pattern
|
||||||
if os.path.isdir (words[0]):
|
if os.path.isdir (words[0]):
|
||||||
if exclude:
|
if exclude:
|
||||||
file.warn ("exclude (!) doesn't apply to " +
|
manifest.warn ("exclude (!) doesn't apply to " +
|
||||||
"whole directory trees")
|
"whole directory trees")
|
||||||
continue
|
continue
|
||||||
|
|
||||||
dir_files = self.search_dir (words[0], words[1:])
|
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
|
# Multiple words in pattern: that's a no-no unless the first
|
||||||
# word is a directory name
|
# word is a directory name
|
||||||
elif len (words) > 1:
|
elif len (words) > 1:
|
||||||
file.warn ("can't have multiple words unless first word " +
|
manifest.warn ("can't have multiple words unless first word " +
|
||||||
"('%s') is a directory name" % words[0])
|
"('%s') is a directory name" % words[0])
|
||||||
continue
|
continue
|
||||||
|
|
||||||
# Single word, no bang: it's a "simple include pattern"
|
# 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"
|
# Single word prefixed with a bang: it's a "simple exclude pattern"
|
||||||
else:
|
else:
|
||||||
if self.exclude_files (pattern) == 0:
|
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'
|
# if/elif/.../else on 'pattern'
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue