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
1ae4c3d0
Kaydet (Commit)
1ae4c3d0
authored
Agu 12, 2002
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Avoid warnings about <<. external_attr is now an unsigned long.
üst
738eda74
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
zipfile.py
Lib/zipfile.py
+2
-2
No files found.
Lib/zipfile.py
Dosyayı görüntüle @
1ae4c3d0
...
@@ -25,7 +25,7 @@ ZIP_DEFLATED = 8
...
@@ -25,7 +25,7 @@ ZIP_DEFLATED = 8
# Here are some struct module formats for reading headers
# Here are some struct module formats for reading headers
structEndArchive
=
"<4s4H2lH"
# 9 items, end of archive, 22 bytes
structEndArchive
=
"<4s4H2lH"
# 9 items, end of archive, 22 bytes
stringEndArchive
=
"PK
\005\006
"
# magic number for end of archive record
stringEndArchive
=
"PK
\005\006
"
# magic number for end of archive record
structCentralDir
=
"<4s4B4H3l5H
2
l"
# 19 items, central directory, 46 bytes
structCentralDir
=
"<4s4B4H3l5H
L
l"
# 19 items, central directory, 46 bytes
stringCentralDir
=
"PK
\001\002
"
# magic number for central directory
stringCentralDir
=
"PK
\001\002
"
# magic number for central directory
structFileHeader
=
"<4s2B4H3l2H"
# 12 items, file header record, 30 bytes
structFileHeader
=
"<4s2B4H3l2H"
# 12 items, file header record, 30 bytes
stringFileHeader
=
"PK
\003\004
"
# magic number for file header
stringFileHeader
=
"PK
\003\004
"
# magic number for file header
...
@@ -373,7 +373,7 @@ class ZipFile:
...
@@ -373,7 +373,7 @@ class ZipFile:
zinfo
=
ZipInfo
(
filename
,
date_time
)
zinfo
=
ZipInfo
(
filename
,
date_time
)
else
:
else
:
zinfo
=
ZipInfo
(
arcname
,
date_time
)
zinfo
=
ZipInfo
(
arcname
,
date_time
)
zinfo
.
external_attr
=
st
[
0
]
<<
16
# Unix attributes
zinfo
.
external_attr
=
st
[
0
]
<<
16
L
# Unix attributes
if
compress_type
is
None
:
if
compress_type
is
None
:
zinfo
.
compress_type
=
self
.
compression
zinfo
.
compress_type
=
self
.
compression
else
:
else
:
...
...
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