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

@ -264,7 +264,7 @@ def walk(top, topdown=True, onerror=None, followlinks=False):
from os.path import join, isdir, islink
# We may not have read permission for top, in which case we can't
# get a list of the files the directory contains. os.path.walk
# get a list of the files the directory contains. os.walk
# always suppressed the exception then, rather than blow up for a
# minor reason when (say) a thousand readable directories are still
# left to visit. That logic is copied here.

View File

@ -109,7 +109,7 @@ class DocBuild(build):
def hackHtml(self):
self.r = re.compile('<dl><dd>')
os.path.walk(self.build_html, self.visit, None)
os.walk(self.build_html, self.visit, None)
def visit(self, dummy, dirname, filenames):
for f in filenames:

View File

@ -39,7 +39,7 @@ def main():
if o == '-f':
force = 1
for dir in sys.argv[1:]:
os.path.walk(dir, handler, (verbose, force))
os.walk(dir, handler, (verbose, force))
if __name__ == '__main__':
main()

View File

@ -22,7 +22,7 @@ def main():
zappyc(dir)
def zappyc(dir):
os.path.walk(dir, walker, None)
os.walk(dir, walker, None)
def walker(dummy, top, names):
for name in names:

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

View File

@ -1574,7 +1574,7 @@ class PyBuildInstallLib(install_lib):
def set_dir_modes(self, dirname, mode):
if not self.is_chmod_supported(): return
os.path.walk(dirname, self.set_dir_modes_visitor, mode)
os.walk(dirname, self.set_dir_modes_visitor, mode)
def set_dir_modes_visitor(self, mode, dirname, names):
if os.path.islink(dirname): return