diff options
Diffstat (limited to 'Lib/ntpath.py')
| -rw-r--r-- | Lib/ntpath.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/ntpath.py b/Lib/ntpath.py index 59f1402..714f205 100644 --- a/Lib/ntpath.py +++ b/Lib/ntpath.py @@ -9,6 +9,8 @@ import os import sys import stat import genericpath +import warnings + from genericpath import * __all__ = ["normcase","isabs","join","splitdrive","split","splitext", @@ -248,7 +250,7 @@ def walk(top, func, arg): beyond that arg is always passed to func. It can be used, e.g., to pass a filename pattern, or a mutable object designed to accumulate statistics. Passing None for arg is common.""" - + warnings.warnpy3k("In 3.x, os.path.walk is removed in favor of os.walk.") try: names = os.listdir(top) except os.error: |
