[Python-checkins] r55721 - in python/trunk: Lib/plat-mac/cfmfile.py Misc/NEWS

brett.cannon python-checkins at python.org
Thu May 31 22:01:16 CEST 2007


Author: brett.cannon
Date: Thu May 31 22:01:11 2007
New Revision: 55721

Modified:
   python/trunk/Lib/plat-mac/cfmfile.py
   python/trunk/Misc/NEWS
Log:
Have cfmfile raise a DeprecationWarning as per PEP 4.


Modified: python/trunk/Lib/plat-mac/cfmfile.py
==============================================================================
--- python/trunk/Lib/plat-mac/cfmfile.py	(original)
+++ python/trunk/Lib/plat-mac/cfmfile.py	Thu May 31 22:01:11 2007
@@ -11,6 +11,9 @@
 import os
 import sys
 
+import warnings
+warnings.warn("the cfmfile module is deprecated", DeprecationWarning, 2)
+
 DEBUG = 0
 
 error = "cfm.error"

Modified: python/trunk/Misc/NEWS
==============================================================================
--- python/trunk/Misc/NEWS	(original)
+++ python/trunk/Misc/NEWS	Thu May 31 22:01:11 2007
@@ -909,6 +909,8 @@
 Mac
 ---
 
+- cfmfile now raises a DeprecationWarning.
+
 - buildtools now raises a DeprecationWarning.
 
 - Removed the macfs module.  It had been deprecated since Python 2.5.  This


More information about the Python-checkins mailing list