Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e212416

Browse files
author
Tarek Ziadé
committed
Merged revisions 80306 via svnmerge from
svn+ssh://[email protected]/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 ........
1 parent df6198e commit e212416

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

Lib/shutil.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
import stat
1010
from os.path import abspath
1111
import fnmatch
12-
from warnings import warn
1312
import collections
1413
import errno
1514

@@ -410,7 +409,7 @@ def _set_uid_gid(tarinfo):
410409

411410
return archive_name
412411

413-
def _call_external_zip(directory, verbose=False):
412+
def _call_external_zip(base_dir, zip_filename, verbose=False, dry_run=False):
414413
# XXX see if we want to keep an external call here
415414
if verbose:
416415
zipoptions = "-r"
@@ -453,7 +452,7 @@ def _make_zipfile(base_name, base_dir, verbose=0, dry_run=0, logger=None):
453452
zipfile = None
454453

455454
if zipfile is None:
456-
_call_external_zip(base_dir, verbose)
455+
_call_external_zip(base_dir, zip_filename, verbose, dry_run)
457456
else:
458457
if logger is not None:
459458
logger.info("creating '%s' and adding '%s' to it",

0 commit comments

Comments
 (0)