diff options
author | Richard Sanger <rsangerarj@gmail.com> | 2019-09-09 15:49:47 (GMT) |
---|---|---|
committer | T. Wouters <thomas@python.org> | 2019-09-09 15:49:47 (GMT) |
commit | bb668f798a78af0fd99675a4c7e0d949591f4f2b (patch) | |
tree | 82e4995b7fa142434e76300766f5f62513dda705 /Doc/library | |
parent | 682107cf458578ee6bd92b7cc6862113034a4fad (diff) | |
download | cpython-bb668f798a78af0fd99675a4c7e0d949591f4f2b.zip cpython-bb668f798a78af0fd99675a4c7e0d949591f4f2b.tar.gz cpython-bb668f798a78af0fd99675a4c7e0d949591f4f2b.tar.bz2 |
Fix docs bz.open default mode (GH-15100)
bz2.open()'s default mode is rb, not r
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/bz2.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/bz2.rst b/Doc/library/bz2.rst index 277de60..aa836af 100644 --- a/Doc/library/bz2.rst +++ b/Doc/library/bz2.rst @@ -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`. |