summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorNadeem Vawda <nadeem.vawda@gmail.com>2012-06-04 21:31:20 (GMT)
committerNadeem Vawda <nadeem.vawda@gmail.com>2012-06-04 21:31:20 (GMT)
commitaebcdba8297bf5174ecf4e8687ad23883e35b14b (patch)
treeb9b55d8bb72a27f439da47f98d676f56876d8237 /Misc
parent68721019efb16ba8acad036c331a9a195d6f7da0 (diff)
downloadcpython-aebcdba8297bf5174ecf4e8687ad23883e35b14b.zip
cpython-aebcdba8297bf5174ecf4e8687ad23883e35b14b.tar.gz
cpython-aebcdba8297bf5174ecf4e8687ad23883e35b14b.tar.bz2
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 46f3fd9..1dc0391 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