diff options
author | Nadeem Vawda <nadeem.vawda@gmail.com> | 2012-06-04 21:38:12 (GMT) |
---|---|---|
committer | Nadeem Vawda <nadeem.vawda@gmail.com> | 2012-06-04 21:38:12 (GMT) |
commit | e860404eb78c2f6fcb05477bdb691e81009ee28d (patch) | |
tree | 8b86efe55750f1df62738a939351bba241582880 /Misc | |
parent | 6cbb20cdf61329ebfa6afcacad21ee6252fb5be5 (diff) | |
download | cpython-e860404eb78c2f6fcb05477bdb691e81009ee28d.zip cpython-e860404eb78c2f6fcb05477bdb691e81009ee28d.tar.gz cpython-e860404eb78c2f6fcb05477bdb691e81009ee28d.tar.bz2 |
Add a function lzma.open(), to match gzip.open() and bz2.open().
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -17,8 +17,8 @@ Library - LZMAFile now accepts the modes "rb"/"wb"/"ab" as synonyms of "r"/"w"/"a". -- The bz2 module now contains an open() function, allowing compressed files to - conveniently be opened in text mode as well as binary mode. +- The bz2 and lzma modules now each contain an open() function, allowing + compressed files to readily be opened in text mode as well as binary mode. - BZ2File.__init__() and LZMAFile.__init__() now accept a file object as their first argument, rather than requiring a separate "fileobj" argument. |