Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
62e17ad2
Commit
62e17ad2
authored
Apr 21, 2010
by
Tarek Ziadé
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shutil: removed unused import and fixed attributes names in _call_external_zip
parent
f0a4cceb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
Lib/shutil.py
Lib/shutil.py
+2
-3
No files found.
Lib/shutil.py
View file @
62e17ad2
...
...
@@ -9,7 +9,6 @@ import sys
import
stat
from
os.path
import
abspath
import
fnmatch
from
warnings
import
warn
import
collections
import
errno
...
...
@@ -393,7 +392,7 @@ def _make_tarball(base_name, base_dir, compress="gzip", verbose=0, dry_run=0,
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
if
verbose
:
zipoptions
=
"-r"
...
...
@@ -437,7 +436,7 @@ def _make_zipfile(base_name, base_dir, verbose=0, dry_run=0, logger=None):
zipfile
=
None
if
zipfile
is
None
:
_call_external_zip
(
base_dir
,
verbose
)
_call_external_zip
(
base_dir
,
zip_filename
,
verbose
,
dry_run
)
else
:
if
logger
is
not
None
:
logger
.
info
(
"creating '%s' and adding '%s' to it"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment