mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Removed remnants of os.path.walk().
This commit is contained in:
parent
14a767d4f4
commit
4e6531e7de
8 changed files with 8 additions and 8 deletions
|
@ -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
|
||||
|
|
|
@ -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):
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue