[issue10146] Incorrect regex generation in translate_pattern

2010-10-19 Thread Éric Araujo
Changes by Éric Araujo : -- resolution: -> duplicate stage: -> committed/rejected status: open -> closed superseder: -> Impossible to include file in sdist that starts with 'build' on Win32 ___ Python tracker _

[issue10146] Incorrect regex generation in translate_pattern

2010-10-19 Thread Noah Kantrowitz
New submission from Noah Kantrowitz : If a prefix is passed to translate_pattern it will generate a pattern using the unescaped output of os.path.join(). This is fine on *nix, but on Windows it results in a pattern like r'build\.*', which matches any string starting with "build" (in my case, "