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 CristiFati, eryksun, lars.gustaebel, paul.moore, steve.dower, tim.golden, vstinner, zach.ware
Date 2020-10-07.14:13:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1602080003.07.0.0866067836822.issue36534@roundup.psfhosted.org>
In-reply-to
Content
> extract the sanitizing function into a common module 
> (could be *pathlib*?) to avoid duplicates

I would prefer something common, cross-platform, and function-based such as os.path.isreservedname and os.path.sanitizename. In posixpath, it would just have to reserve and sanitize slash [/] and null [\0]. The real work would be in ntpath.
History
Date User Action Args
2020-10-07 14:13:23eryksunsetrecipients: + eryksun, paul.moore, lars.gustaebel, vstinner, tim.golden, zach.ware, steve.dower, CristiFati
2020-10-07 14:13:23eryksunsetmessageid: <1602080003.07.0.0866067836822.issue36534@roundup.psfhosted.org>
2020-10-07 14:13:23eryksunlinkissue36534 messages
2020-10-07 14:13:23eryksuncreate