mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Use case-dependent variant of fnmatch
This commit is contained in:
parent
c2ed415a1b
commit
f808012f5e
1 changed files with 1 additions and 1 deletions
|
@ -315,7 +315,7 @@ class Scanner:
|
|||
return arglist
|
||||
|
||||
def matcharg(self, patarg, arg):
|
||||
return len(filter(None, map(fnmatch.fnmatch, arg, patarg))) == 3
|
||||
return len(filter(None, map(fnmatch.fnmatchcase, arg, patarg))) == 3
|
||||
|
||||
def substituteargs(self, pattern, replacement, old):
|
||||
new = []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue