summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
Diffstat (limited to 'Lib')
-rw-r--r--Lib/bz2.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/bz2.py b/Lib/bz2.py
index ae59407..d04731b 100644
--- a/Lib/bz2.py
+++ b/Lib/bz2.py
@@ -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.