diff Python/Python-ast.c @ 83867:12cbb5183d98

Issue #17917: Use PyModule_AddIntMacro() instead of PyModule_AddIntConstant() when applicable.
author Charles-Francois Natali <cf.natali@gmail.com>
date Mon, 20 May 2013 19:13:19 +0200
parents cc7a94efb1b7
children cf8f42eadbd0
line wrap: on
line diff
--- a/Python/Python-ast.c	Mon May 20 19:08:19 2013 +0200
+++ b/Python/Python-ast.c	Mon May 20 19:13:19 2013 +0200
@@ -6977,7 +6977,7 @@
         d = PyModule_GetDict(m);
         if (PyDict_SetItemString(d, "AST", (PyObject*)&AST_type) < 0) return
             NULL;
-        if (PyModule_AddIntConstant(m, "PyCF_ONLY_AST", PyCF_ONLY_AST) < 0)
+        if (PyModule_AddIntMacro(m, PyCF_ONLY_AST) < 0)
                 return NULL;
         if (PyDict_SetItemString(d, "mod", (PyObject*)mod_type) < 0) return
             NULL;