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
0075690c
Kaydet (Commit)
0075690c
authored
Şub 05, 2006
tarafından
Martin v. Löwis
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Patch #1412872: zipfile: use correct system type on unixy systems.
üst
55cd82fe
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
zipfile.py
Lib/zipfile.py
+6
-2
NEWS
Misc/NEWS
+3
-0
No files found.
Lib/zipfile.py
Dosyayı görüntüle @
0075690c
"Read and write ZIP files."
import
struct
,
os
,
time
import
struct
,
os
,
time
,
sys
import
binascii
try
:
...
...
@@ -131,7 +131,11 @@ class ZipInfo:
self
.
compress_type
=
ZIP_STORED
# Type of compression for the file
self
.
comment
=
""
# Comment for each file
self
.
extra
=
""
# ZIP extra data
self
.
create_system
=
0
# System which created ZIP archive
if
sys
.
platform
==
'win32'
:
self
.
create_system
=
0
# System which created ZIP archive
else
:
# Assume everything else is unix-y
self
.
create_system
=
3
# System which created ZIP archive
self
.
create_version
=
20
# Version which created ZIP archive
self
.
extract_version
=
20
# Version needed to extract archive
self
.
reserved
=
0
# Must be zero
...
...
Misc/NEWS
Dosyayı görüntüle @
0075690c
...
...
@@ -358,6 +358,9 @@ Extension Modules
Library
-------
- Patch #1412872: zipfile now sets the creator system to 3 (Unix)
unless the system is Win32.
- Patch #1349118: urllib now supports user:pass@ style proxy
specifications, raises IOErrors when proxies for unsupported protocols
are defined, and uses the https proxy on https redirections.
...
...
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