[issue28230] tarfile does not support pathlib

Ethan Furman report at bugs.python.org
Mon Oct 10 12:45:16 EDT 2016


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 <report at bugs.python.org>
<http://bugs.python.org/issue28230>
_______________________________________


More information about the Python-bugs-list mailing list