[issue20245] Check empty mode in TarFile.*open()

2014-01-18 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ ___

[issue20245] Check empty mode in TarFile.*open()

2014-01-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8edb892f4d69 by Serhiy Storchaka in branch '2.7': Issue #20245: The open functions in the tarfile module now correctly handle empty mode. http://hg.python.org/cpython/rev/8edb892f4d69 New changeset 8ef1fd952410 by Serhiy Storchaka in branch '3.3':

[issue20245] Check empty mode in TarFile.*open()

2014-01-13 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: TarFile's *open() class methods checks the mode argument to raise helpful error: >>> t = tarfile.TarFile.taropen('xxx.tar', 'q') Traceback (most recent call last): File "", line 1, in File "/home/serhiy/py/cpython/Lib/tarfile.py", line 1589, in taropen