diff options
author | Thomas Wouters <thomas@python.org> | 2006-02-28 19:02:24 +0000 |
---|---|---|
committer | Thomas Wouters <thomas@python.org> | 2006-02-28 19:02:24 +0000 |
commit | a32da9df39a8ed9150faf8dfc91fcc0102e7b3e5 (patch) | |
tree | fc09307043f0a396c92cc74e45e6fb8c64e15b9a /Python/Python-ast.c | |
parent | 8225eb8adef40e35c3d8fdaeaea54ee1dbe2b7a7 (diff) | |
download | cpython-a32da9df39a8ed9150faf8dfc91fcc0102e7b3e5.tar.gz |
from __future__ import with_statement addon for 'with', mostly written by
Neal.
Diffstat (limited to 'Python/Python-ast.c')
-rw-r--r-- | Python/Python-ast.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/Python-ast.c b/Python/Python-ast.c index 07de6cb6ad..c4861c3ae1 100644 --- a/Python/Python-ast.c +++ b/Python/Python-ast.c @@ -371,7 +371,7 @@ static PyTypeObject* make_type(char *type, PyTypeObject* base, char**fields, int } PyTuple_SET_ITEM(fnames, i, field); } - result = PyObject_CallFunction((PyObject*)&PyType_Type, "s(O){sOss}", + result = PyObject_CallFunction((PyObject*)&PyType_Type, "s(O){sOss}", type, base, "_fields", fnames, "__module__", "_ast"); Py_DECREF(fnames); return (PyTypeObject*)result; @@ -2956,7 +2956,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__", "42635") < 0) + if (PyModule_AddStringConstant(m, "__version__", "42649") < 0) return; if(PyDict_SetItemString(d, "mod", (PyObject*)mod_type) < 0) return; if(PyDict_SetItemString(d, "Module", (PyObject*)Module_type) < 0) |