summaryrefslogtreecommitdiffstats
path: root/Lib/ntpath.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2008-05-09 00:27:01 (GMT)
committerBenjamin Peterson <benjamin@python.org>2008-05-09 00:27:01 (GMT)
commit0893a0a961c3393aea052b268b630a7e522ba3a9 (patch)
tree4b1535bcb1f2be754a8de5a711742c3574ab5438 /Lib/ntpath.py
parent9ec4aa01f9e1b5f0d8ed94005ac5b14d6ff94ebc (diff)
downloadcpython-0893a0a961c3393aea052b268b630a7e522ba3a9.zip
cpython-0893a0a961c3393aea052b268b630a7e522ba3a9.tar.gz
cpython-0893a0a961c3393aea052b268b630a7e522ba3a9.tar.bz2
Add Py3k warnings to os.path.walk
Diffstat (limited to 'Lib/ntpath.py')
-rw-r--r--Lib/ntpath.py4
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: