From: Brett Cannon Date: Thu, 31 May 2007 19:40:42 +0000 (+0000) Subject: Cause buildtools to raise a DeprecationWarning. X-Git-Tag: v2.6a1~1669 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=791d56f1f71a9cc02993063ea1545d7ae8822bf2;p=thirdparty%2FPython%2Fcpython.git Cause buildtools to raise a DeprecationWarning. --- diff --git a/Lib/plat-mac/buildtools.py b/Lib/plat-mac/buildtools.py index c83e2180242d..f5dab88d9d2b 100644 --- a/Lib/plat-mac/buildtools.py +++ b/Lib/plat-mac/buildtools.py @@ -14,6 +14,9 @@ import macresource import EasyDialogs import shutil +import warnings +warnings.warn("the buildtools module is deprecated", DeprecationWarning, 2) + BuildError = "BuildError" diff --git a/Misc/NEWS b/Misc/NEWS index 740602b22d3e..068bf715128d 100644 --- 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.