diff options
author | Charles-Francois Natali <cf.natali@gmail.com> | 2013-05-20 17:13:19 (GMT) |
---|---|---|
committer | Charles-Francois Natali <cf.natali@gmail.com> | 2013-05-20 17:13:19 (GMT) |
commit | 74ca886788fd116b026fdaa5980a48f09bce9bef (patch) | |
tree | e28c3c619a57f1cb35659b51adfdb53c2d68b68f /Python | |
parent | d66b10e165d784ae7ea0d875f11153f1dff76fd8 (diff) | |
download | cpython-74ca886788fd116b026fdaa5980a48f09bce9bef.zip cpython-74ca886788fd116b026fdaa5980a48f09bce9bef.tar.gz cpython-74ca886788fd116b026fdaa5980a48f09bce9bef.tar.bz2 |
Issue #17917: Use PyModule_AddIntMacro() instead of PyModule_AddIntConstant()
when applicable.
Diffstat (limited to 'Python')
-rw-r--r-- | Python/Python-ast.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/Python-ast.c b/Python/Python-ast.c index 6632001..744e640 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; |