Message321272
This issue isn't specific to Windows. It's a bug in shutil._basename:
def _basename(path):
# A basename() variant which first strips the trailing slash, if present.
# Thus we always get the last component of the path, even for directories.
sep = os.path.sep + (os.path.altsep or '')
return os.path.basename(path.rstrip(sep))
It should use `os.fspath(path)` to get the path as a string. |
|
Date |
User |
Action |
Args |
2018-07-08 11:33:27 | eryksun | set | recipients:
+ eryksun, paul.moore, tim.golden, zach.ware, steve.dower, joshuaavalon |
2018-07-08 11:33:27 | eryksun | set | messageid: <1531049607.06.0.56676864532.issue34069@psf.upfronthosting.co.za> |
2018-07-08 11:33:26 | eryksun | link | issue34069 messages |
2018-07-08 11:33:26 | eryksun | create | |
|