diff options
author | Brett Cannon <bcannon@gmail.com> | 2007-05-31 20:01:11 (GMT) |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2007-05-31 20:01:11 (GMT) |
commit | f0cb1d7ad6a62768d5435f1f9a7e0f2d4c0ecf37 (patch) | |
tree | 7f334803f5f1d008df0c42b082a31cbf5066b4d7 /Lib/plat-mac | |
parent | 791d56f1f71a9cc02993063ea1545d7ae8822bf2 (diff) | |
download | cpython-f0cb1d7ad6a62768d5435f1f9a7e0f2d4c0ecf37.zip cpython-f0cb1d7ad6a62768d5435f1f9a7e0f2d4c0ecf37.tar.gz cpython-f0cb1d7ad6a62768d5435f1f9a7e0f2d4c0ecf37.tar.bz2 |
Have cfmfile raise a DeprecationWarning as per PEP 4.
Diffstat (limited to 'Lib/plat-mac')
-rw-r--r-- | Lib/plat-mac/cfmfile.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/plat-mac/cfmfile.py b/Lib/plat-mac/cfmfile.py index fd1a3e8..91ab0a6 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" |