comparison Python/Python-ast.c @ 70301:86fa95c560a6 2.6

Replay changeset 70238:03e488b5c009 from fubar branch. Original commit message: Reconcile with the 2.6svn branch. The 2.6.7 release will be made from Subversion, but there were differences, so this brings them in sync. These changes should *not* propagate to any newer versions.
author Barry Warsaw <barry@python.org>
date Mon, 23 May 2011 15:22:56 -0400
parents 2b934d466993
children 9d004a9a2ced
comparison
equal deleted inserted replaced
70282:4e5f161f667c 70301:86fa95c560a6
1 /* File automatically generated by Parser/asdl_c.py. */ 1 /* File automatically generated by Parser/asdl_c.py. */
2 2
3 3
4 /* 4 /*
5 __version__ 62047. 5 __version__ .
6 6
7 This module must be committed separately after each AST grammar change; 7 This module must be committed separately after each AST grammar change;
8 The __version__ number is set to the revision number of the commit 8 The __version__ number is set to the revision number of the commit
9 containing the grammar change. 9 containing the grammar change.
10 */ 10 */
6298 if (!m) return; 6298 if (!m) return;
6299 d = PyModule_GetDict(m); 6299 d = PyModule_GetDict(m);
6300 if (PyDict_SetItemString(d, "AST", (PyObject*)&AST_type) < 0) return; 6300 if (PyDict_SetItemString(d, "AST", (PyObject*)&AST_type) < 0) return;
6301 if (PyModule_AddIntConstant(m, "PyCF_ONLY_AST", PyCF_ONLY_AST) < 0) 6301 if (PyModule_AddIntConstant(m, "PyCF_ONLY_AST", PyCF_ONLY_AST) < 0)
6302 return; 6302 return;
6303 if (PyModule_AddStringConstant(m, "__version__", "62047") < 0) 6303 if (PyModule_AddStringConstant(m, "__version__", "") < 0)
6304 return; 6304 return;
6305 if (PyDict_SetItemString(d, "mod", (PyObject*)mod_type) < 0) return; 6305 if (PyDict_SetItemString(d, "mod", (PyObject*)mod_type) < 0) return;
6306 if (PyDict_SetItemString(d, "Module", (PyObject*)Module_type) < 0) 6306 if (PyDict_SetItemString(d, "Module", (PyObject*)Module_type) < 0)
6307 return; 6307 return;
6308 if (PyDict_SetItemString(d, "Interactive", (PyObject*)Interactive_type) 6308 if (PyDict_SetItemString(d, "Interactive", (PyObject*)Interactive_type)