Fix docs bz.open default mode (GH-15100)

bz2.open()'s default mode is rb, not r
This commit is contained in:
Richard Sanger 2019-09-10 03:49:47 +12:00 committed by T. Wouters
parent 682107cf45
commit bb668f798a
1 changed files with 1 additions and 1 deletions

View File

@ -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`.