commit | 75ba46509904cadf653d40c15da3b647a313a5b1 | [log] [tgz] |
---|---|---|
author | Brett Cannon <bcannon@gmail.com> | Thu May 15 03:23:17 2008 +0000 |
committer | Brett Cannon <bcannon@gmail.com> | Thu May 15 03:23:17 2008 +0000 |
tree | 742052e25e4e25a510900bb3d5b2180bbbb708cf | |
parent | 178582e2a48dab04bb0a20b92d38a8280327dd6f [diff] |
Deprecated 'fm' for removal in 3.0.
diff --git a/Modules/fmmodule.c b/Modules/fmmodule.c index 1f7edb6..f3f0dc5 100644 --- a/Modules/fmmodule.c +++ b/Modules/fmmodule.c
@@ -257,6 +257,11 @@ void initfm(void) { + + if (PyErr_WarnPy3k("the fm module has been removed in " + "Python 3.0", 2) < 0) + return; + Py_InitModule("fm", fm_methods); if (m == NULL) return;