From f618a48d117fe98dce05253eded6caeb9a849114 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Tue, 2 Nov 1999 13:29:08 +0000 Subject: [PATCH] Correct typo in walk.__doc__ reported by Francois Pinard. --- Lib/ntpath.py | 2 +- Lib/posixpath.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/ntpath.py b/Lib/ntpath.py index 94c349caaa..75cbe4980d 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 36edc80f14..874dc4c95a 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". """ -- 2.40.0