Message278428
| Author |
ethan.furman |
| Recipients |
berker.peksag, brett.cannon, ethan.furman, ned.deily, serhiy.storchaka |
| Date |
2016年10月10日.16:45:16 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1476117916.9.0.246040817694.issue28230@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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. |
|