diff options
author | Tim Peters <tim.peters@gmail.com> | 2006-04-18 17:32:12 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2006-04-18 17:32:12 (GMT) |
commit | 584b0e0c3d27dc6b576366368bf7ca2f60e69e7c (patch) | |
tree | f2e33dbae88a59b367819920a5c4a2260f080788 /Lib/setuptools/archive_util.py | |
parent | 17a35f906c29e71510d749283b381d95a5de0316 (diff) | |
download | cpython-584b0e0c3d27dc6b576366368bf7ca2f60e69e7c.zip cpython-584b0e0c3d27dc6b576366368bf7ca2f60e69e7c.tar.gz cpython-584b0e0c3d27dc6b576366368bf7ca2f60e69e7c.tar.bz2 |
Whilespace normalization (reindint.py).
Diffstat (limited to 'Lib/setuptools/archive_util.py')
-rwxr-xr-x | Lib/setuptools/archive_util.py | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/Lib/setuptools/archive_util.py b/Lib/setuptools/archive_util.py index 511f05a..dd9c684 100755 --- a/Lib/setuptools/archive_util.py +++ b/Lib/setuptools/archive_util.py @@ -14,7 +14,7 @@ class UnrecognizedFormat(DistutilsError): """Couldn't recognize the archive type""" def default_filter(src,dst): - """The default progress/filter callback; returns True for all files""" + """The default progress/filter callback; returns True for all files""" return dst @@ -184,7 +184,7 @@ def unpack_tarfile(filename, extract_dir, progress_filter=default_filter): name = member.name # don't extract absolute paths or ones with .. in them if not name.startswith('/') and '..' not in name: - dst = os.path.join(extract_dir, *name.split('/')) + dst = os.path.join(extract_dir, *name.split('/')) dst = progress_filter(name, dst) if dst: if dst.endswith(os.sep): @@ -198,8 +198,3 @@ def unpack_tarfile(filename, extract_dir, progress_filter=default_filter): extraction_drivers = unpack_directory, unpack_zipfile, unpack_tarfile - - - - - |