From: Richard Sanger Date: Mon, 9 Sep 2019 15:49:47 +0000 (+1200) Subject: Fix docs bz.open default mode (GH-15100) X-Git-Tag: v3.9.0a1~646 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bb668f798a78af0fd99675a4c7e0d949591f4f2b;p=thirdparty%2FPython%2Fcpython.git Fix docs bz.open default mode (GH-15100) bz2.open()'s default mode is rb, not r --- 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`.