[Python-checkins] Fix docs bz.open default mode (GH-15100)
T. Wouters
webhook-mailer at python.org
Mon Sep 9 11:49:50 EDT 2019
https://github.com/python/cpython/commit/bb668f798a78af0fd99675a4c7e0d949591f4f2b
commit: bb668f798a78af0fd99675a4c7e0d949591f4f2b
branch: master
author: Richard Sanger <rsangerarj at gmail.com>
committer: T. Wouters <thomas at python.org>
date: 2019-09-09T08:49:47-07:00
summary:
Fix docs bz.open default mode (GH-15100)
bz2.open()'s default mode is rb, not r
files:
M Doc/library/bz2.rst
diff --git a/Doc/library/bz2.rst b/Doc/library/bz2.rst
index 277de601cb7b..aa836af2b257 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`.
More information about the Python-checkins
mailing list