Removed remnants of os.path.walk().

This commit is contained in:
Alexandre Vassalotti 2008-05-09 20:00:17 +00:00
parent 14a767d4f4
commit 4e6531e7de
8 changed files with 8 additions and 8 deletions

View file

@ -341,7 +341,7 @@ def getFilesForName(name):
if os.path.isdir(name):
# find all python files in directory
list = []
os.path.walk(name, _visit_pyfiles, list)
os.walk(name, _visit_pyfiles, list)
return list
elif os.path.exists(name):
# a single file

View file

@ -22,7 +22,7 @@ def main():
pat, dirs = args[0], args[1:]
prog = re.compile(pat)
for dirname in dirs:
os.path.walk(dirname, visit, prog)
os.walk(dirname, visit, prog)
def visit(prog, dirname, names):
if os.path.islink(dirname):

View file

@ -31,7 +31,7 @@ def check1dir(dummy, dir, files):
print('** Exception in', fullname)
def walk1tree(tree):
os.path.walk(tree, check1dir, None)
os.walk(tree, check1dir, None)
def main():
global VERBOSE