]> granicus.if.org Git - python/commitdiff
Have cfmfile raise a DeprecationWarning as per PEP 4.
authorBrett Cannon <bcannon@gmail.com>
Thu, 31 May 2007 20:01:11 +0000 (20:01 +0000)
committerBrett Cannon <bcannon@gmail.com>
Thu, 31 May 2007 20:01:11 +0000 (20:01 +0000)
Lib/plat-mac/cfmfile.py
Misc/NEWS

index fd1a3e86ca90ab2a03696a50c57e114df817c5b9..91ab0a61c82fabe9da093a2adc1d2564298018ec 100644 (file)
@@ -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"
index 068bf715128d48b3c49d41720ac19b3d9d7b9c11..e3577dbebf35893ad3a406c5b49643d40a23b860 100644 (file)
--- 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