Add Py3k warnings to os.path.walk
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 sys
import stat
import genericpath
+import warnings
+
from genericpath import *
__all__ = ["normcase","isabs","join","splitdrive","split","splitext",
@@ -248,7 +250,7 @@
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: