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
participants (1)
-
brett.cannon