diff options
author | Nadeem Vawda <nadeem.vawda@gmail.com> | 2012-06-04 21:31:22 (GMT) |
---|---|---|
committer | Nadeem Vawda <nadeem.vawda@gmail.com> | 2012-06-04 21:31:22 (GMT) |
commit | 50cb936bd0fe2645d975f6acf519caa606fc82d3 (patch) | |
tree | 39d6537bc04e63496fadd2369cef4eb5ebffec1e /Lib/bz2.py | |
parent | aebcdba8297bf5174ecf4e8687ad23883e35b14b (diff) | |
download | cpython-50cb936bd0fe2645d975f6acf519caa606fc82d3.zip cpython-50cb936bd0fe2645d975f6acf519caa606fc82d3.tar.gz cpython-50cb936bd0fe2645d975f6acf519caa606fc82d3.tar.bz2 |
Clarify acceptable values for BZ2File.__init__'s mode argument.
Diffstat (limited to 'Lib/bz2.py')
-rw-r--r-- | Lib/bz2.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -46,8 +46,8 @@ class BZ2File(io.BufferedIOBase): be opened. Otherwise, it should be a file object, which will be used to read or write the compressed data. - mode can be 'r' for reading (default), 'w' for (over)writing, or - 'a' for appending. + mode can be 'r' for reading (default), 'w' for (over)writing, or 'a' for + appending. These can equivalently be given as 'rb', 'wb', and 'ab'. buffering is ignored. Its use is deprecated. |