diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 1996-03-07 15:16:27 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 1996-03-07 15:16:27 (GMT) |
commit | 57fb8cec3aa26ac0491550ce4f53a6a45d3749b5 (patch) | |
tree | c1da3974ffd99f908a34f28b63eff2d5e9017c9a /Mac/scripts/binhextree.py | |
parent | 3fff8c43fbcd582d895b2b9d69ce5462523115e4 (diff) | |
download | cpython-57fb8cec3aa26ac0491550ce4f53a6a45d3749b5.zip cpython-57fb8cec3aa26ac0491550ce4f53a6a45d3749b5.tar.gz cpython-57fb8cec3aa26ac0491550ce4f53a6a45d3749b5.tar.bz2 |
New binhexer
Diffstat (limited to 'Mac/scripts/binhextree.py')
-rw-r--r-- | Mac/scripts/binhextree.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Mac/scripts/binhextree.py b/Mac/scripts/binhextree.py index 6512de7..accc2ac 100644 --- a/Mac/scripts/binhextree.py +++ b/Mac/scripts/binhextree.py @@ -118,7 +118,11 @@ extensions = [ ] def walker(arg, top, names): - for n in names: + lnames = names[:] + for n in lnames: + if n[0] == '(' and n[-1] == ')': + names.remove(n) + continue for ext, handler in extensions: if n[-len(ext):] == ext: name = os.path.join(top, n) |