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
2f9d4d1e
Kaydet (Commit)
2f9d4d1e
authored
Mar 20, 2008
tarafından
Amaury Forgeot d'Arc
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
- Revert a change that should have been blocked: py3k has no -3 flag!
- also remove a bogus debug print
üst
2b9b4e12
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
27 deletions
+8
-27
regrtest.py
Lib/test/regrtest.py
+0
-8
zipfile.py
Lib/zipfile.py
+8
-19
No files found.
Lib/test/regrtest.py
Dosyayı görüntüle @
2f9d4d1e
...
...
@@ -1157,14 +1157,6 @@ class _ExpectedSkips:
if
sys
.
platform
!=
'sunos5'
:
self
.
expected
.
add
(
'test_nis'
)
# TODO: This is a hack to raise TestSkipped if -3 is not enabled.
# Instead of relying on callable to have a warning, we should expose
# the -3 flag to Python code somehow
with
test_support
.
catch_warning
()
as
w
:
callable
(
int
)
if
w
.
message
is
None
:
self
.
expected
.
add
(
'test_py3kwarn'
)
self
.
valid
=
True
def
isvalid
(
self
):
...
...
Lib/zipfile.py
Dosyayı görüntüle @
2f9d4d1e
...
...
@@ -1067,25 +1067,14 @@ class ZipFile:
extract_version
=
zinfo
.
extract_version
create_version
=
zinfo
.
create_version
try
:
centdir
=
struct
.
pack
(
structCentralDir
,
stringCentralDir
,
create_version
,
zinfo
.
create_system
,
extract_version
,
zinfo
.
reserved
,
zinfo
.
flag_bits
,
zinfo
.
compress_type
,
dostime
,
dosdate
,
zinfo
.
CRC
,
compress_size
,
file_size
,
len
(
zinfo
.
filename
),
len
(
extra_data
),
len
(
zinfo
.
comment
),
0
,
zinfo
.
internal_attr
,
zinfo
.
external_attr
,
header_offset
)
except
DeprecationWarning
:
print
>>
sys
.
stderr
,
(
structCentralDir
,
stringCentralDir
,
create_version
,
zinfo
.
create_system
,
extract_version
,
zinfo
.
reserved
,
zinfo
.
flag_bits
,
zinfo
.
compress_type
,
dostime
,
dosdate
,
zinfo
.
CRC
,
compress_size
,
file_size
,
len
(
zinfo
.
filename
),
len
(
extra_data
),
len
(
zinfo
.
comment
),
0
,
zinfo
.
internal_attr
,
zinfo
.
external_attr
,
header_offset
)
raise
centdir
=
struct
.
pack
(
structCentralDir
,
stringCentralDir
,
create_version
,
zinfo
.
create_system
,
extract_version
,
zinfo
.
reserved
,
zinfo
.
flag_bits
,
zinfo
.
compress_type
,
dostime
,
dosdate
,
zinfo
.
CRC
,
compress_size
,
file_size
,
len
(
zinfo
.
filename
),
len
(
extra_data
),
len
(
zinfo
.
comment
),
0
,
zinfo
.
internal_attr
,
zinfo
.
external_attr
,
header_offset
)
self
.
fp
.
write
(
centdir
)
self
.
fp
.
write
(
zinfo
.
filename
.
encode
(
"utf-8"
))
self
.
fp
.
write
(
extra_data
)
...
...
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