summaryrefslogtreecommitdiff
path: root/Misc
diff options
context:
space:
mode:
authorNadeem Vawda <nadeem.vawda@gmail.com>2012-06-04 23:31:20 +0200
committerNadeem Vawda <nadeem.vawda@gmail.com>2012-06-04 23:31:20 +0200
commitaebcdba8297bf5174ecf4e8687ad23883e35b14b (patch)
treeb9b55d8bb72a27f439da47f98d676f56876d8237 /Misc
parent68721019efb16ba8acad036c331a9a195d6f7da0 (diff)
downloadcpython-git-aebcdba8297bf5174ecf4e8687ad23883e35b14b.tar.gz
Make BZ2File's fileobj support easier to use.
The fileobj argument was added during the 3.3 development cycle, so this change does not break backward compatibility with 3.2.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index 46f3fd9cd2..1dc039192e 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -15,6 +15,9 @@ Core and Builtins
Library
-------
+- BZ2File.__init__() now accepts a file object as its first argument, rather
+ than requiring a separate "fileobj" argument.
+
- gzip.open() now accepts file objects as well as filenames.
- Issue #14992: os.makedirs(path, exist_ok=True) would raise an OSError