diff options
| author | Erik Rose <ErikRose@psu.edu> | 2010-02-24 22:22:23 -0500 |
|---|---|---|
| committer | Erik Rose <ErikRose@psu.edu> | 2010-02-24 22:22:23 -0500 |
| commit | 5cdeab0e586216e0b14ba237bf8f0cb2baa6aeb8 (patch) | |
| tree | 76c9b9f5408d500e6f8c648e31986528e9391aa2 /src/distutils2 | |
| parent | a9926819bc31838b9746e0d5f12171d192bd3740 (diff) | |
| download | disutils2-5cdeab0e586216e0b14ba237bf8f0cb2baa6aeb8.tar.gz | |
Did a few cleanups that don't affect behavior.
* Made FileList a new-style class. (Why not? Everybody likes super().)
* Removed dead, backward-compatibility kwargs from FileList.__init__.
* Killed FileList.set_allfiles(), which appears dead (and should be done directly anyway).
Diffstat (limited to 'src/distutils2')
| -rw-r--r-- | src/distutils2/filelist.py | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/distutils2/filelist.py b/src/distutils2/filelist.py index 388af48..711ec8d 100644 --- a/src/distutils2/filelist.py +++ b/src/distutils2/filelist.py @@ -12,7 +12,7 @@ from distutils2.util import convert_path from distutils2.errors import DistutilsTemplateError, DistutilsInternalError from distutils2 import log -class FileList: +class FileList(object): """A list of files built by on exploring the filesystem and filtered by applying various patterns to what we find there. @@ -27,15 +27,10 @@ class FileList: filtering applied) """ - def __init__(self, warn=None, debug_print=None): - # ignore argument to FileList, but keep them for backwards - # compatibility + def __init__(self): self.allfiles = None self.files = [] - def set_allfiles(self, allfiles): - self.allfiles = allfiles - def findall(self, dir=os.curdir): self.allfiles = findall(dir) @@ -252,7 +247,7 @@ class FileList: # ---------------------------------------------------------------------- # Utility functions -def findall(dir = os.curdir): +def findall(dir=os.curdir): """Find all files under 'dir' and return the list of full filenames (relative to 'dir'). """ |
