New binhexer

This commit is contained in:
Jack Jansen 1996-03-07 15:16:27 +00:00
parent 3fff8c43fb
commit 57fb8cec3a
7 changed files with 254 additions and 250 deletions

View file

@ -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)