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
34cba334
Kaydet (Commit)
34cba334
authored
Ock 01, 2017
tarafından
Serhiy Storchaka
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #29094: Offsets in a ZIP file created with extern file object and modes
"w" and "x" now are relative to the start of the file.
üst
b47913f5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
zipfile.py
Lib/zipfile.py
+3
-2
NEWS
Misc/NEWS
+3
-0
No files found.
Lib/zipfile.py
Dosyayı görüntüle @
34cba334
...
@@ -1028,11 +1028,12 @@ class ZipFile:
...
@@ -1028,11 +1028,12 @@ class ZipFile:
# set the modified flag so central directory gets written
# set the modified flag so central directory gets written
# even if no files are added to the archive
# even if no files are added to the archive
self
.
_didModify
=
True
self
.
_didModify
=
True
self
.
_start_disk
=
0
try
:
try
:
self
.
start_dir
=
self
.
_start_disk
=
self
.
fp
.
tell
()
self
.
start_dir
=
self
.
fp
.
tell
()
except
(
AttributeError
,
OSError
):
except
(
AttributeError
,
OSError
):
self
.
fp
=
_Tellable
(
self
.
fp
)
self
.
fp
=
_Tellable
(
self
.
fp
)
self
.
start_dir
=
self
.
_start_disk
=
0
self
.
start_dir
=
0
self
.
_seekable
=
False
self
.
_seekable
=
False
else
:
else
:
# Some file-like objects can provide tell() but not seek()
# Some file-like objects can provide tell() but not seek()
...
...
Misc/NEWS
Dosyayı görüntüle @
34cba334
...
@@ -140,6 +140,9 @@ Core and Builtins
...
@@ -140,6 +140,9 @@ Core and Builtins
Library
Library
-------
-------
- Issue #29094: Offsets in a ZIP file created with extern file object and modes
"w" and "x" now are relative to the start of the file.
- Issue #13051: Fixed recursion errors in large or resized
- Issue #13051: Fixed recursion errors in large or resized
curses.textpad.Textbox. Based on patch by Tycho Andersen.
curses.textpad.Textbox. Based on patch by Tycho Andersen.
...
...
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