From: Richard Sanger Date: Mon, 9 Sep 2019 15:49:47 +0000 (+1200) Subject: Fix docs bz.open default mode (GH-15100) X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bb668f798a78af0fd99675a4c7e0d949591f4f2b;p=python 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 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`.