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 josh.r
Recipients Jim Nasby, josh.r
Date 2016-11-17.02:00:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1479348014.96.0.0081044967134.issue28718@psf.upfronthosting.co.za>
In-reply-to
Content
Presumably something like:

r'(?:' + r'|'.join({re.escape(os.path.sep), re.escape(os.path.altsep)}) + r')'

would cover it completely. I switched to using non-capturing groups over a character class both to deal with the fact that escaping doesn't work the same way for character classes and to cover the possibility (no idea here) that some terrible OS might have a multicharacter path separator.
History
Date User Action Args
2016-11-17 02:00:15josh.rsetrecipients: + josh.r, Jim Nasby
2016-11-17 02:00:14josh.rsetmessageid: <1479348014.96.0.0081044967134.issue28718@psf.upfronthosting.co.za>
2016-11-17 02:00:14josh.rlinkissue28718 messages
2016-11-17 02:00:14josh.rcreate