mirror of
https://github.com/python/cpython.git
synced 2025-09-12 03:37:09 +00:00
The logic for finding long matches before short ones was wrong (why did I never notice this??!?), fixed.
This commit is contained in:
parent
8a6cdccf21
commit
eb43b30aee
1 changed files with 7 additions and 7 deletions
|
@ -142,13 +142,13 @@ class IncMatcher(Matcher):
|
||||||
if DEBUG:
|
if DEBUG:
|
||||||
print 'include', patharg, dstpath
|
print 'include', patharg, dstpath
|
||||||
return dstpath
|
return dstpath
|
||||||
path, lastcomp = os.path.split(path)
|
## path, lastcomp = os.path.split(path)
|
||||||
if not path:
|
## if not path:
|
||||||
break
|
## break
|
||||||
removed[0:0] = [lastcomp]
|
## removed[0:0] = [lastcomp]
|
||||||
# Next check the exclude directory
|
## # Next check the exclude directory
|
||||||
path = patharg
|
## path = patharg
|
||||||
while 1:
|
## while 1:
|
||||||
if self.edict.has_key(path):
|
if self.edict.has_key(path):
|
||||||
if DEBUG:
|
if DEBUG:
|
||||||
print 'exclude', patharg, path
|
print 'exclude', patharg, path
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue