diff options
author | Benjamin Peterson <benjamin@python.org> | 2013-05-20 17:28:48 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2013-05-20 17:28:48 (GMT) |
commit | 8d89c2aaba60a188e4453a7a5785f6644a1074c1 (patch) | |
tree | ad750d44743c468cf03e0b6e9e32754e0075581d /Parser | |
parent | 74ca886788fd116b026fdaa5980a48f09bce9bef (diff) | |
download | cpython-8d89c2aaba60a188e4453a7a5785f6644a1074c1.zip cpython-8d89c2aaba60a188e4453a7a5785f6644a1074c1.tar.gz cpython-8d89c2aaba60a188e4453a7a5785f6644a1074c1.tar.bz2 |
change AST codegen to use PyModule_AddIntMacro
Diffstat (limited to 'Parser')
-rwxr-xr-x | Parser/asdl_c.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Parser/asdl_c.py b/Parser/asdl_c.py index 4c7bb35..9f85528 100755 --- a/Parser/asdl_c.py +++ b/Parser/asdl_c.py @@ -1011,7 +1011,7 @@ class ASTModuleVisitor(PickleVisitor): self.emit("if (!m) return NULL;", 1) self.emit("d = PyModule_GetDict(m);", 1) self.emit('if (PyDict_SetItemString(d, "AST", (PyObject*)&AST_type) < 0) return NULL;', 1) - self.emit('if (PyModule_AddIntConstant(m, "PyCF_ONLY_AST", PyCF_ONLY_AST) < 0)', 1) + self.emit('if (PyModule_AddIntMacro(m, PyCF_ONLY_AST) < 0)', 1) self.emit("return NULL;", 2) for dfn in mod.dfns: self.visit(dfn) |