From 4cbb8db267d7de8134c11a549f1c8b5fbb511d23 Mon Sep 17 00:00:00 2001 From: Charles-Francois Natali Date: Mon, 20 May 2013 19:13:19 +0200 Subject: Issue #17917: Use PyModule_AddIntMacro() instead of PyModule_AddIntConstant() when applicable. --- Python/Python-ast.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Python/Python-ast.c') diff --git a/Python/Python-ast.c b/Python/Python-ast.c index 6632001c0e..744e640bce 100644 --- a/Python/Python-ast.c +++ b/Python/Python-ast.c @@ -6977,7 +6977,7 @@ PyInit__ast(void) 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; -- cgit v1.2.1