summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/command/sdist.py
diff options
context:
space:
mode:
authorGreg Ward <gward@python.net>2000-07-27 01:58:45 (GMT)
committerGreg Ward <gward@python.net>2000-07-27 01:58:45 (GMT)
commitaa5372caa758b8bd36ae0621a490dcc0ec21d2ae (patch)
treee0a22448d26131165aed66b038e95d21a3a7ceb0 /Lib/distutils/command/sdist.py
parent7499847c5327767575e3344b1452e91418ec5a98 (diff)
downloadcpython-aa5372caa758b8bd36ae0621a490dcc0ec21d2ae.zip
cpython-aa5372caa758b8bd36ae0621a490dcc0ec21d2ae.tar.gz
cpython-aa5372caa758b8bd36ae0621a490dcc0ec21d2ae.tar.bz2
Remove unused 'search_dir()' method.
Comment tweak.
Diffstat (limited to 'Lib/distutils/command/sdist.py')
-rw-r--r--Lib/distutils/command/sdist.py22
1 files changed, 1 insertions, 21 deletions
diff --git a/Lib/distutils/command/sdist.py b/Lib/distutils/command/sdist.py
index 2d31640..3b91170 100644
--- a/Lib/distutils/command/sdist.py
+++ b/Lib/distutils/command/sdist.py
@@ -319,26 +319,6 @@ class sdist (Command):
# 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):
"""Remove filenames from 'self.files' that are under 'dir' and
whose basenames match 'pattern'.
@@ -717,7 +697,7 @@ def findall (dir = os.curdir):
names = os.listdir (dir)
for name in names:
- if dir != os.curdir: # avoid the dreaded "./" syndrome
+ if dir != os.curdir: # avoid leading "./"
fullname = os.path.join (dir, name)
else:
fullname = name