From: Éric Araujo Date: Sun, 26 Feb 2012 03:01:34 +0000 (+0100) Subject: Port the #6884 fix to packaging X-Git-Tag: v3.3.0a1~63 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7d32e7e5bc60123d8cebc1641f112a3440385f25;p=python Port the #6884 fix to packaging --- diff --git a/Lib/packaging/manifest.py b/Lib/packaging/manifest.py index 9826d29a1e..40e733013a 100644 --- a/Lib/packaging/manifest.py +++ b/Lib/packaging/manifest.py @@ -272,6 +272,7 @@ class Manifest(object): Return True if files are found. """ + # XXX docstring lying about what the special chars are? files_found = False pattern_re = _translate_pattern(pattern, anchor, prefix, is_regex) @@ -335,11 +336,14 @@ def _glob_to_re(pattern): # IMHO is wrong -- '?' and '*' aren't supposed to match slash in Unix, # and by extension they shouldn't match such "special characters" under # any OS. So change all non-escaped dots in the RE to match any - # character except the special characters. - # XXX currently the "special characters" are just slash -- i.e. this is - # Unix-only. - pattern_re = re.sub(r'((?