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 paul.moore
Recipients alexis, eric.araujo, higery, jlove, paul.moore, pitrou, tarek
Date 2011-10-17.20:07:52
SpamBayes Score 1.5924945e-05
Marked as misclassified No
Message-id <1318882073.39.0.859532996802.issue13193@psf.upfronthosting.co.za>
In-reply-to
Content
First one - the problem is in packaging.manifest._translate_pattern, which uses os.path.join on regex parts. That won't work on Windows where os.sep is a backslash, as the backslash is a RE metacharacter.

Actually, the file list seems to only use '/' as a path separator, so you can just use

    pattern_re = "^" + prefix_re + '/' + ".*" + pattern_re

Whether this is right or not depends on whether the test is correctly supplying the expected file list as always /-separated. I don't know enough to be certain on that. An alternative would be to use '[/\\]' in the above, to catch both / and \ separators. Technically wrong, but robust enough to do for now if needed.
History
Date User Action Args
2011-10-17 20:07:53paul.mooresetrecipients: + paul.moore, pitrou, tarek, eric.araujo, alexis, jlove, higery
2011-10-17 20:07:53paul.mooresetmessageid: <1318882073.39.0.859532996802.issue13193@psf.upfronthosting.co.za>
2011-10-17 20:07:52paul.moorelinkissue13193 messages
2011-10-17 20:07:52paul.moorecreate