From: Brett Cannon Date: Thu, 31 May 2007 20:01:11 +0000 (+0000) Subject: Have cfmfile raise a DeprecationWarning as per PEP 4. X-Git-Tag: v2.6a1~1668 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f0cb1d7ad6a62768d5435f1f9a7e0f2d4c0ecf37;p=python Have cfmfile raise a DeprecationWarning as per PEP 4. --- diff --git a/Lib/plat-mac/cfmfile.py b/Lib/plat-mac/cfmfile.py index fd1a3e86ca..91ab0a61c8 100644 --- a/Lib/plat-mac/cfmfile.py +++ b/Lib/plat-mac/cfmfile.py @@ -11,6 +11,9 @@ from Carbon import Res import os import sys +import warnings +warnings.warn("the cfmfile module is deprecated", DeprecationWarning, 2) + DEBUG = 0 error = "cfm.error" diff --git a/Misc/NEWS b/Misc/NEWS index 068bf71512..e3577dbebf 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -909,6 +909,8 @@ Windows Mac --- +- cfmfile now raises a DeprecationWarning. + - buildtools now raises a DeprecationWarning. - Removed the macfs module. It had been deprecated since Python 2.5. This