[Python-Dev] lzma and 'x' mode open

Tim Heaney theaney at gmail.com
Wed Oct 9 02:49:17 CEST 2013


I love the 'x' mode open in recent versions of Python. I just discovered
that lzma.open doesn't support it. It seems there's an elif that explicitly
checks the modes allowed. I added "x" and "xb" to the choices and now it
seems to work as I would like.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20131008/7275b79b/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.lzma.py
Type: application/octet-stream
Size: 464 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-dev/attachments/20131008/7275b79b/attachment.obj>


More information about the Python-Dev mailing list