From: Guido van Rossum Date: Tue, 2 Nov 1999 13:29:08 +0000 (+0000) Subject: Correct typo in walk.__doc__ reported by Francois Pinard. X-Git-Tag: v1.6a1~778 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f618a48d117fe98dce05253eded6caeb9a849114;p=thirdparty%2FPython%2Fcpython.git Correct typo in walk.__doc__ reported by Francois Pinard. --- diff --git a/Lib/ntpath.py b/Lib/ntpath.py index 94c349caaad3..75cbe4980df0 100644 --- a/Lib/ntpath.py +++ b/Lib/ntpath.py @@ -255,7 +255,7 @@ def ismount(path): def walk(top, func, arg): """Directory tree walk whth callback function. - walk(top, func, args) calls func(arg, d, files) for each directory d + walk(top, func, arg) calls func(arg, d, files) for each directory d in the tree rooted at top (including top itself); files is a list of all the files and subdirs in directory d.""" try: diff --git a/Lib/posixpath.py b/Lib/posixpath.py index 36edc80f1400..874dc4c95a78 100644 --- a/Lib/posixpath.py +++ b/Lib/posixpath.py @@ -254,7 +254,7 @@ def ismount(path): # or to impose a different order of visiting. def walk(top, func, arg): - """walk(top,func,args) calls func(arg, d, files) for each directory "d" + """walk(top,func,arg) calls func(arg, d, files) for each directory "d" in the tree rooted at "top" (including "top" itself). "files" is a list of all the files and subdirs in directory "d". """