diff options
| author | Greg Ward <gward@python.net> | 2000-07-30 00:37:04 +0000 |
|---|---|---|
| committer | Greg Ward <gward@python.net> | 2000-07-30 00:37:04 +0000 |
| commit | 86f9edf31c0f992aacc6f9fb0892a57e749e60f4 (patch) | |
| tree | f0f0954a6234cc89a95b9abcdc15833a6e8deae4 /filelist.py | |
| parent | ea8670808399ab267f60d8cfcab189102e069b8e (diff) | |
| download | python-setuptools-git-86f9edf31c0f992aacc6f9fb0892a57e749e60f4.tar.gz | |
Ditched the unused 'recursive_exclude_pattern()' method.
Diffstat (limited to 'filelist.py')
| -rw-r--r-- | filelist.py | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/filelist.py b/filelist.py index 749fa612..2eaff837 100644 --- a/filelist.py +++ b/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 |
