[issue19920] TarFile.list() fails on some files
Serhiy Storchaka
report at bugs.python.org
Wed Jan 29 13:35:36 CET 2014
Serhiy Storchaka added the comment:
Well, good.
But I still have several nitpicks. Here is revised patch.
* Now ASCII encoding is used to test list() output. And tests now run even if sys.stdout is a StringIO.
* test_list_verbose now test that printed files are actually separated by one new line, not by just spaces and not by two new lines.
* safe_print was simplified and renamed to _safe_print. Now streams without the "encoding" attribute are supported.
* Minor style fixes.
----------
Added file: http://bugs.python.org/file33792/fix_tarfile_list_print_lone_surrogate_v5.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19920>
_______________________________________
More information about the Python-bugs-list
mailing list