]> granicus.if.org Git - python/commitdiff
Cause buildtools to raise a DeprecationWarning.
authorBrett Cannon <bcannon@gmail.com>
Thu, 31 May 2007 19:40:42 +0000 (19:40 +0000)
committerBrett Cannon <bcannon@gmail.com>
Thu, 31 May 2007 19:40:42 +0000 (19:40 +0000)
Lib/plat-mac/buildtools.py
Misc/NEWS

index c83e2180242d356141d422cae047bb17918add1d..f5dab88d9d2bad22aa84a0ac50fb4d046f396110 100644 (file)
@@ -14,6 +14,9 @@ import macresource
 import EasyDialogs
 import shutil
 
+import warnings
+warnings.warn("the buildtools module is deprecated", DeprecationWarning, 2)
+
 
 BuildError = "BuildError"
 
index 740602b22d3e0623b56367bef54daf7d5ce4c178..068bf715128d48b3c49d41720ac19b3d9d7b9c11 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -909,6 +909,8 @@ Windows
 Mac
 ---
 
+- buildtools now raises a DeprecationWarning.
+
 - Removed the macfs module.  It had been deprecated since Python 2.5.  This
   lead to the deprecation of macostools.touched() as it relied solely on macfs
   and was a no-op under OS X.