mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +00:00
Issue 6665: Fix fnmatch to properly match filenames with newlines in them.
This commit is contained in:
parent
1ce2d5305a
commit
b98d6b2cbc
3 changed files with 11 additions and 2 deletions
|
|
@ -104,4 +104,4 @@ def translate(pat):
|
|||
res = '%s[%s]' % (res, stuff)
|
||||
else:
|
||||
res = res + re.escape(c)
|
||||
return res + "$"
|
||||
return res + '\Z(?ms)'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue