From 791d56f1f71a9cc02993063ea1545d7ae8822bf2 Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Thu, 31 May 2007 19:40:42 +0000 Subject: Cause buildtools to raise a DeprecationWarning. --- Lib/plat-mac/buildtools.py | 3 +++ Misc/NEWS | 2 ++ 2 files changed, 5 insertions(+) diff --git a/Lib/plat-mac/buildtools.py b/Lib/plat-mac/buildtools.py index c83e218..f5dab88 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 740602b..068bf71 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. -- cgit v0.12