mirror of
https://github.com/python/cpython.git
synced 2026-01-06 23:42:34 +00:00
Fix docs bz.open default mode (GH-15100)
bz2.open()'s default mode is rb, not r
This commit is contained in:
parent
682107cf45
commit
bb668f798a
1 changed files with 1 additions and 1 deletions
|
|
@ -31,7 +31,7 @@ All of the classes in this module may safely be accessed from multiple threads.
|
|||
(De)compression of files
|
||||
------------------------
|
||||
|
||||
.. function:: open(filename, mode='r', compresslevel=9, encoding=None, errors=None, newline=None)
|
||||
.. function:: open(filename, mode='rb', compresslevel=9, encoding=None, errors=None, newline=None)
|
||||
|
||||
Open a bzip2-compressed file in binary or text mode, returning a :term:`file
|
||||
object`.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue