Issue 6665: Fix fnmatch to properly match filenames with newlines in them.

This commit is contained in:
Gregory P. Smith 2009-08-16 18:52:58 +00:00
parent 1ce2d5305a
commit b98d6b2cbc
3 changed files with 11 additions and 2 deletions

View file

@ -104,4 +104,4 @@ def translate(pat):
res = '%s[%s]' % (res, stuff)
else:
res = res + re.escape(c)
return res + "$"
return res + '\Z(?ms)'