This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eryksun
Recipients eryksun, joshuaavalon, paul.moore, steve.dower, tim.golden, zach.ware
Date 2018-07-08.11:33:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1531049607.06.0.56676864532.issue34069@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2018-07-08 11:33:27eryksunsetrecipients: + eryksun, paul.moore, tim.golden, zach.ware, steve.dower, joshuaavalon
2018-07-08 11:33:27eryksunsetmessageid: <1531049607.06.0.56676864532.issue34069@psf.upfronthosting.co.za>
2018-07-08 11:33:26eryksunlinkissue34069 messages
2018-07-08 11:33:26eryksuncreate