Mercurial > cpython-lru_cache-weakref
diff Python/Python-ast.c @ 40941:2ca14d6a369b
Whoops, fix build breakage. There were still a few uses of the bool type.
Remove the last few uses of bool/true/false.
| author | Neal Norwitz <nnorwitz@gmail.com> |
|---|---|
| date | Mon, 26 Feb 2007 19:14:12 +0000 |
| parents | 6aa1be5dd009 |
| children | 30e5cb3a55ac |
line wrap: on
line diff
--- a/Python/Python-ast.c Mon Feb 26 19:04:49 2007 +0000 +++ b/Python/Python-ast.c Mon Feb 26 19:14:12 2007 +0000 @@ -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 @@ } #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 @@ 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)
