Kaydet (Commit) e2124164 authored tarafından Tarek Ziadé's avatar Tarek Ziadé

Merged revisions 80306 via svnmerge from

svn+ssh://pythondev@svn.python.org/python/trunk

........
  r80306 | tarek.ziade | 2010-04-21 15:32:26 +0200 (Wed, 21 Apr 2010) | 1 line

  shutil: removed unused import and fixed attributes names in _call_external_zip
........
üst df6198ee
...@@ -9,7 +9,6 @@ import sys ...@@ -9,7 +9,6 @@ import sys
import stat import stat
from os.path import abspath from os.path import abspath
import fnmatch import fnmatch
from warnings import warn
import collections import collections
import errno import errno
...@@ -410,7 +409,7 @@ def _make_tarball(base_name, base_dir, compress="gzip", verbose=0, dry_run=0, ...@@ -410,7 +409,7 @@ def _make_tarball(base_name, base_dir, compress="gzip", verbose=0, dry_run=0,
return archive_name return archive_name
def _call_external_zip(directory, verbose=False): def _call_external_zip(base_dir, zip_filename, verbose=False, dry_run=False):
# XXX see if we want to keep an external call here # XXX see if we want to keep an external call here
if verbose: if verbose:
zipoptions = "-r" zipoptions = "-r"
...@@ -453,7 +452,7 @@ def _make_zipfile(base_name, base_dir, verbose=0, dry_run=0, logger=None): ...@@ -453,7 +452,7 @@ def _make_zipfile(base_name, base_dir, verbose=0, dry_run=0, logger=None):
zipfile = None zipfile = None
if zipfile is None: if zipfile is None:
_call_external_zip(base_dir, verbose) _call_external_zip(base_dir, zip_filename, verbose, dry_run)
else: else:
if logger is not None: if logger is not None:
logger.info("creating '%s' and adding '%s' to it", logger.info("creating '%s' and adding '%s' to it",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment