From: Moshe Zadka Date: Fri, 30 Mar 2001 15:37:31 +0000 (+0000) Subject: Fixing #409651 -- \ in a character group X-Git-Tag: v2.0.1c1~58 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ff905353a732aeb436c74236095a04f7236e8621;p=thirdparty%2FPython%2Fcpython.git Fixing #409651 -- \ in a character group --- diff --git a/Lib/fnmatch.py b/Lib/fnmatch.py index 75d2d6eb43b4..fd51e259e736 100644 --- a/Lib/fnmatch.py +++ b/Lib/fnmatch.py @@ -73,7 +73,7 @@ def translate(pat): if j >= n: res = res + '\\[' else: - stuff = pat[i:j] + stuff = pat[i:j].replace('\\','\\\\') i = j+1 if stuff[0] == '!': stuff = '[^' + stuff[1:] + ']' diff --git a/Misc/NEWS b/Misc/NEWS index c9348c214659..78fe57c94d21 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -26,6 +26,8 @@ http://sourceforge.net/tracker/index.php?func=detail&aid=&group_id=5470&atid - In Lib/locale.py, setlocale emulation, use != and not is not to compare strings +- #409651 - in Lib/fnmatch.py, make \ in a character group work + What's New in Python 2.0? =========================