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
4907b0a2
Kaydet (Commit)
4907b0a2
authored
Eki 08, 2012
tarafından
Nadeem Vawda
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
bz2 module: Rewrap docstrings at 72 columns, as per PEP 8.
üst
3b4a4f51
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
15 deletions
+16
-15
bz2.py
Lib/bz2.py
+16
-15
No files found.
Lib/bz2.py
Dosyayı görüntüle @
4907b0a2
...
...
@@ -44,12 +44,13 @@ class BZ2File(io.BufferedIOBase):
def
__init__
(
self
,
filename
,
mode
=
"r"
,
buffering
=
None
,
compresslevel
=
9
):
"""Open a bzip2-compressed file.
If filename is a str or bytes object, i
s gives the name of the file to
be opened. Otherwise, it should be a file object, which will be used to
read or write the compressed data.
If filename is a str or bytes object, i
t gives the name
of the file to be opened. Otherwise, it should be a file object,
which will be used to
read or write the compressed data.
mode can be 'r' for reading (default), 'w' for (over)writing, or 'a' for
appending. These can equivalently be given as 'rb', 'wb', and 'ab'.
mode can be 'r' for reading (default), 'w' for (over)writing,
or 'a' for appending. These can equivalently be given as 'rb',
'wb', and 'ab'.
buffering is ignored. Its use is deprecated.
...
...
@@ -439,20 +440,20 @@ def open(filename, mode="rb", compresslevel=9,
encoding
=
None
,
errors
=
None
,
newline
=
None
):
"""Open a bzip2-compressed file in binary or text mode.
The filename argument can be an actual filename (a str or bytes
object), or
an existing file object to read from or write to.
The filename argument can be an actual filename (a str or bytes
object), or
an existing file object to read from or write to.
The mode argument can be "r", "rb", "w", "wb", "a" or "ab" for
binary mode,
or "rt", "wt" or "at" for text mode. The default mode is "rb", and th
e
default compresslevel is 9.
The mode argument can be "r", "rb", "w", "wb", "a" or "ab" for
binary mode, or "rt", "wt" or "at" for text mode. The default mod
e
is "rb", and the
default compresslevel is 9.
For binary mode, this function is equivalent to the BZ2File
constructor:
BZ2File(filename, mode, compresslevel). In this case, the encoding, errors
and newline arguments must not be provided.
For binary mode, this function is equivalent to the BZ2File
constructor: BZ2File(filename, mode, compresslevel). In this case,
the encoding, errors
and newline arguments must not be provided.
For text mode, a BZ2File object is created, and wrapped in an
io.TextIOWrapper instance with the specified encoding, error
handling
behavior, and line ending(s).
io.TextIOWrapper instance with the specified encoding, error
handling
behavior, and line ending(s).
"""
if
"t"
in
mode
:
...
...
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