summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Sanger <rsangerarj@gmail.com>2019-09-10 03:49:47 +1200
committerT. Wouters <thomas@python.org>2019-09-09 08:49:47 -0700
commitbb668f798a78af0fd99675a4c7e0d949591f4f2b (patch)
tree82e4995b7fa142434e76300766f5f62513dda705
parent682107cf458578ee6bd92b7cc6862113034a4fad (diff)
downloadcpython-git-bb668f798a78af0fd99675a4c7e0d949591f4f2b.tar.gz
Fix docs bz.open default mode (GH-15100)
bz2.open()'s default mode is rb, not r
-rw-r--r--Doc/library/bz2.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/bz2.rst b/Doc/library/bz2.rst
index 277de601cb..aa836af2b2 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`.