Ethan Furman added the comment:

As Serhiy was alluding to, if the incoming path is for the actual tar file and 
is only passed along to Python itself then we probably don't need to worry 
about os.fspath().  For names that will be interally stored, or are for 
accessing internal files, then the proper sequence is check for and call 
os.fspath if necessary, and then double-check that the name to be used is a 
str.  The double-check is needed because os.fspath may return a bytes object, 
which tar does not allow.

----------

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

Reply via email to