commit | b98d6b2cbcba1344609a60c7c0fb9f595d19023b | [log] [tgz] |
---|---|---|
author | Gregory P. Smith <greg@mad-scientist.com> | Sun Aug 16 18:52:58 2009 +0000 |
committer | Gregory P. Smith <greg@mad-scientist.com> | Sun Aug 16 18:52:58 2009 +0000 |
tree | da262aa1f7023cbf321b115fde7dd3d8f2693a89 | |
parent | 1ce2d5305a0494aa6ce476892e91b117ed40ce7d [diff] [blame] |
Issue 6665: Fix fnmatch to properly match filenames with newlines in them.
diff --git a/Lib/fnmatch.py b/Lib/fnmatch.py index 3bf2463..4c149eb 100644 --- a/Lib/fnmatch.py +++ b/Lib/fnmatch.py
@@ -104,4 +104,4 @@ res = '%s[%s]' % (res, stuff) else: res = res + re.escape(c) - return res + "$" + return res + '\Z(?ms)'