[issue29760] tarfile chokes on reading .tar file with no entries (but does fine if the same file is bzip2'ed)
Matt Bogosian
report at bugs.python.org
Wed Mar 8 20:53:15 EST 2017
Matt Bogosian added the comment:
FWIW, the (offending) fix for #24259 was introduced (e.g., in 2.7) via 2.7.10. I've verified that 2.7.9 works as expected:
```
$ python -V
Python 2.7.9
$ python tarfail.py
opening /…/tarfail/test.tar.bz2
opening /…/tarfail/test.tar
.
----------------------------------------------------------------------
Ran 1 test in 0.010s
OK
```
So this should probably be considered a regression.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29760>
_______________________________________
More information about the Python-bugs-list
mailing list