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
c5e1199f
Kaydet (Commit)
c5e1199f
authored
Ock 18, 2012
tarafından
Lars Gustäbel
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #5689: Avoid excessive memory usage by using the default lzma preset.
üst
50a4d5de
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
5 deletions
+1
-5
tarfile.py
Lib/tarfile.py
+1
-5
No files found.
Lib/tarfile.py
Dosyayı görüntüle @
c5e1199f
...
@@ -1807,7 +1807,7 @@ class TarFile(object):
...
@@ -1807,7 +1807,7 @@ class TarFile(object):
return
t
return
t
@classmethod
@classmethod
def
xzopen
(
cls
,
name
,
mode
=
"r"
,
fileobj
=
None
,
preset
=
9
,
**
kwargs
):
def
xzopen
(
cls
,
name
,
mode
=
"r"
,
fileobj
=
None
,
preset
=
None
,
**
kwargs
):
"""Open lzma compressed tar archive name for reading or writing.
"""Open lzma compressed tar archive name for reading or writing.
Appending is not allowed.
Appending is not allowed.
"""
"""
...
@@ -1819,10 +1819,6 @@ class TarFile(object):
...
@@ -1819,10 +1819,6 @@ class TarFile(object):
except
ImportError
:
except
ImportError
:
raise
CompressionError
(
"lzma module is not available"
)
raise
CompressionError
(
"lzma module is not available"
)
if
mode
==
"r"
:
# LZMAFile complains about a preset argument in read mode.
preset
=
None
fileobj
=
lzma
.
LZMAFile
(
filename
=
name
if
fileobj
is
None
else
None
,
fileobj
=
lzma
.
LZMAFile
(
filename
=
name
if
fileobj
is
None
else
None
,
mode
=
mode
,
fileobj
=
fileobj
,
preset
=
preset
)
mode
=
mode
,
fileobj
=
fileobj
,
preset
=
preset
)
...
...
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