Issue 10146: Incorrect regex generation in translate_pattern (original) (raw)
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).