Antoine Pietri added the comment:

Well, that seems complicated: you can't overwrite a io.FileIO().name attribute, 
and doing so would be nonsensical for tarfile, which would try to perform IO 
operations on a random file descriptor... Also, I can't think of any case where 
a .name attribute could actually be bytes (I was just mirroring the code in 
msg214670).

Here's a patch that tries all combinations of encoding for writing, but I can't 
see a way to enforce manually the name attribute being an int, even for this 
test purposes.

----------
Added file: http://bugs.python.org/file34739/test_tarfile_all_modes.diff

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue21044>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to