Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f618a48

Browse files
committed
Correct typo in walk.__doc__ reported by Francois Pinard.
1 parent 5a2ca93 commit f618a48

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Lib/ntpath.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ def ismount(path):
255255
def walk(top, func, arg):
256256
"""Directory tree walk whth callback function.
257257
258-
walk(top, func, args) calls func(arg, d, files) for each directory d
258+
walk(top, func, arg) calls func(arg, d, files) for each directory d
259259
in the tree rooted at top (including top itself); files is a list
260260
of all the files and subdirs in directory d."""
261261
try:

Lib/posixpath.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ def ismount(path):
254254
# or to impose a different order of visiting.
255255

256256
def walk(top, func, arg):
257-
"""walk(top,func,args) calls func(arg, d, files) for each directory "d"
257+
"""walk(top,func,arg) calls func(arg, d, files) for each directory "d"
258258
in the tree rooted at "top" (including "top" itself). "files" is a list
259259
of all the files and subdirs in directory "d".
260260
"""

0 commit comments

Comments
 (0)