mirror of
https://github.com/python/cpython.git
synced 2025-09-11 11:17:16 +00:00
New binhexer
This commit is contained in:
parent
3fff8c43fb
commit
57fb8cec3a
7 changed files with 254 additions and 250 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue