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.

classification
Title: Incorrect regex generation in translate_pattern
Type: behavior Stage: resolved
Components: Distutils Versions: Python 3.1, Python 2.7, Python 2.6
process
Status: closed Resolution: duplicate
Dependencies: Superseder: Impossible to include file in sdist that starts with 'build' on Win32
View: 6884
Assigned To: tarek Nosy List: coderanger, eric.araujo, tarek
Priority: normal Keywords: patch

Created on 2010-10-19 19:10 by coderanger, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
filelist.diff coderanger, 2010-10-19 19:10 Patch to fix translate_pattern on Windows
Messages (1)
msg119159 - (view) Author: Noah Kantrowitz (coderanger) * Date: 2010-10-19 19:10
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, "buildout.cfg"). Escaping the separator fixes this (patch attached).
History
Date User Action Args
2022-04-11 14:57:07adminsetgithub: 54355
2010-10-19 20:12:47eric.araujosetstatus: open -> closed
resolution: duplicate
superseder: Impossible to include file in sdist that starts with 'build' on Win32
stage: resolved
2010-10-19 19:10:43coderangercreate