[Python-checkins] CVS: distutils/distutils filelist.py,1.4,1.5

Greg Ward python-dev@python.org
2000年7月29日 17:37:06 -0700


Update of /cvsroot/python/distutils/distutils
In directory slayer.i.sourceforge.net:/tmp/cvs-serv15884
Modified Files:
	filelist.py 
Log Message:
Ditched the unused 'recursive_exclude_pattern()' method.
Index: filelist.py
===================================================================
RCS file: /cvsroot/python/distutils/distutils/filelist.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** filelist.py	2000年07月30日 00:36:25	1.4
--- filelist.py	2000年07月30日 00:37:04	1.5
***************
*** 249,276 ****
 # 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
 
--- 249,252 ----

AltStyle によって変換されたページ (->オリジナル) /