summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorAlexandre Vassalotti <alexandre@peadrop.com>2008-05-09 20:00:17 (GMT)
committerAlexandre Vassalotti <alexandre@peadrop.com>2008-05-09 20:00:17 (GMT)
commit4e6531e7dee5ff9b27c108e8614d336657e68a21 (patch)
tree43b23c55f5bd5c6872c71c928e2b68c78dff3880 /Tools
parent14a767d4f499c8ead06a14d9c64c01c4ced95e61 (diff)
downloadcpython-4e6531e7dee5ff9b27c108e8614d336657e68a21.zip
cpython-4e6531e7dee5ff9b27c108e8614d336657e68a21.tar.gz
cpython-4e6531e7dee5ff9b27c108e8614d336657e68a21.tar.bz2
Removed remnants of os.path.walk().
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/i18n/pygettext.py2
-rwxr-xr-xTools/scripts/findlinksto.py2
-rw-r--r--Tools/versioncheck/checkversions.py2
3 files changed, 3 insertions, 3 deletions
diff --git a/Tools/i18n/pygettext.py b/Tools/i18n/pygettext.py
index 69a19ef..4f0866e 100755
--- a/Tools/i18n/pygettext.py
+++ b/Tools/i18n/pygettext.py
@@ -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
diff --git a/Tools/scripts/findlinksto.py b/Tools/scripts/findlinksto.py
index 4fde30d..d3da7e4 100755
--- a/Tools/scripts/findlinksto.py
+++ b/Tools/scripts/findlinksto.py
@@ -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):
diff --git a/Tools/versioncheck/checkversions.py b/Tools/versioncheck/checkversions.py
index ccb544d..f110cac 100644
--- a/Tools/versioncheck/checkversions.py
+++ b/Tools/versioncheck/checkversions.py
@@ -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