Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
62e17ad2
Kaydet (Commit)
62e17ad2
authored
Nis 21, 2010
tarafından
Tarek Ziadé
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
shutil: removed unused import and fixed attributes names in _call_external_zip
üst
f0a4cceb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
shutil.py
Lib/shutil.py
+2
-3
No files found.
Lib/shutil.py
Dosyayı görüntüle @
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