mirror of https://github.com/python/cpython.git
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
|
@ -142,13 +142,13 @@ def match(self, patharg):
|
|||
if DEBUG:
|
||||
print 'include', patharg, dstpath
|
||||
return dstpath
|
||||
path, lastcomp = os.path.split(path)
|
||||
if not path:
|
||||
break
|
||||
removed[0:0] = [lastcomp]
|
||||
# Next check the exclude directory
|
||||
path = patharg
|
||||
while 1:
|
||||
## path, lastcomp = os.path.split(path)
|
||||
## if not path:
|
||||
## break
|
||||
## removed[0:0] = [lastcomp]
|
||||
## # Next check the exclude directory
|
||||
## path = patharg
|
||||
## while 1:
|
||||
if self.edict.has_key(path):
|
||||
if DEBUG:
|
||||
print 'exclude', patharg, path
|
||||
|
|
Loading…
Reference in New Issue