Mercurial > cpython-lru_cache-weakref
diff Mac/scripts/MkDistr.py @ 14502:eef25730e64d legacy-trunk
The logic for finding long matches before short ones was wrong (why did I never notice this??!?), fixed.
| author | Jack Jansen <jack.jansen@cwi.nl> |
|---|---|
| date | Sun, 10 Sep 2000 12:03:06 +0000 |
| parents | 92d1ddc1c57f |
| children | 57a4857430ff |
line wrap: on
line diff
--- a/Mac/scripts/MkDistr.py Sun Sep 10 12:02:28 2000 +0000 +++ b/Mac/scripts/MkDistr.py Sun Sep 10 12:03:06 2000 +0000 @@ -142,13 +142,13 @@ 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
