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 | 6baa4c4cc6d303bfdac7c6fd21371f3bc48c7e06 (patch) | |
tree | 16ac764ea2e02dada18ee6269ed723ddcdd8e8e4 /Python/Python-ast.c | |
parent | 3591bbe4534d05631ace7b7e7b076c0cc52e7f13 (diff) | |
download | cpython-git-6baa4c4cc6d303bfdac7c6fd21371f3bc48c7e06.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) |