diff options
author | Greg Ward <gward@python.net> | 2000-07-30 00:37:04 (GMT) |
---|---|---|
committer | Greg Ward <gward@python.net> | 2000-07-30 00:37:04 (GMT) |
commit | c019e2c7a8db8e84033d1c4121b1e63abb172c7d (patch) | |
tree | a777b39864aa26db6a7de30a6f90e25590721216 /Lib/distutils/filelist.py | |
parent | 0f341855accddf217f1926d2f50e30f9da26baba (diff) | |
download | cpython-c019e2c7a8db8e84033d1c4121b1e63abb172c7d.zip cpython-c019e2c7a8db8e84033d1c4121b1e63abb172c7d.tar.gz cpython-c019e2c7a8db8e84033d1c4121b1e63abb172c7d.tar.bz2 |
Ditched the unused 'recursive_exclude_pattern()' method.
Diffstat (limited to 'Lib/distutils/filelist.py')
-rw-r--r-- | Lib/distutils/filelist.py | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/Lib/distutils/filelist.py b/Lib/distutils/filelist.py index 749fa61..2eaff83 100644 --- a/Lib/distutils/filelist.py +++ b/Lib/distutils/filelist.py @@ -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 |