diff options
author | Nadeem Vawda <nadeem.vawda@gmail.com> | 2012-06-04 21:34:07 (GMT) |
---|---|---|
committer | Nadeem Vawda <nadeem.vawda@gmail.com> | 2012-06-04 21:34:07 (GMT) |
commit | 33c34da5745f2e3fdc315e5098295621d8023674 (patch) | |
tree | 224765898477deda4a8d39dbf574c476752b16dd /Misc | |
parent | af518c198e249aae63a82a5a44c93c3e5cc140f4 (diff) | |
download | cpython-33c34da5745f2e3fdc315e5098295621d8023674.zip cpython-33c34da5745f2e3fdc315e5098295621d8023674.tar.gz cpython-33c34da5745f2e3fdc315e5098295621d8023674.tar.bz2 |
Simplify usage of LZMAFile's fileobj support, like with BZ2File.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -18,8 +18,8 @@ Library - The bz2 module now contains an open() function, allowing compressed files to conveniently be opened in text mode as well as binary mode. -- BZ2File.__init__() now accepts a file object as its first argument, rather - than requiring a separate "fileobj" argument. +- BZ2File.__init__() and LZMAFile.__init__() now accept a file object as their + first argument, rather than requiring a separate "fileobj" argument. - gzip.open() now accepts file objects as well as filenames. |