diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2007-02-26 19:14:12 +0000 |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2007-02-26 19:14:12 +0000 |
commit | b70772a4cbe96a0bebd0238d3054715c19327090 (patch) | |
tree | 1d7500aaf52bef5a74bc46b14153492fcf916ff6 /Python/Python-ast.c | |
parent | dfbb358626422efc69b48994cb75fd32793efe4f (diff) | |
download | cpython-b70772a4cbe96a0bebd0238d3054715c19327090.tar.gz |
Whoops, fix build breakage. There were still a few uses of the bool type.
Remove the last few uses of bool/true/false.
Diffstat (limited to 'Python/Python-ast.c')
-rw-r--r-- | Python/Python-ast.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/Python/Python-ast.c b/Python/Python-ast.c index b5621827eb..5aefbacf65 100644 --- a/Python/Python-ast.c +++ b/Python/Python-ast.c @@ -2,7 +2,7 @@ /* - __version__ 53873. + __version__ 53956. This module must be committed separately after each AST grammar change; The __version__ number is set to the revision number of the commit @@ -443,10 +443,6 @@ static PyObject* ast2obj_object(void *o) } #define ast2obj_identifier ast2obj_object #define ast2obj_string ast2obj_object -static PyObject* ast2obj_bool(bool b) -{ - return PyBool_FromLong(b); -} static PyObject* ast2obj_int(long b) { @@ -3013,7 +3009,7 @@ init_ast(void) if (PyDict_SetItemString(d, "AST", (PyObject*)AST_type) < 0) return; if (PyModule_AddIntConstant(m, "PyCF_ONLY_AST", PyCF_ONLY_AST) < 0) return; - if (PyModule_AddStringConstant(m, "__version__", "53873") < 0) + if (PyModule_AddStringConstant(m, "__version__", "53956") < 0) return; if (PyDict_SetItemString(d, "mod", (PyObject*)mod_type) < 0) return; if (PyDict_SetItemString(d, "Module", (PyObject*)Module_type) < 0) |