Mercurial > cpython-lru_cache-weakref
comparison Python/Python-ast.c @ 58251:8a5ac9ff5057 legacy-trunk
Update version information for AST changes in r77422.
| author | Alexandre Vassalotti <alexandre@peadrop.com> |
|---|---|
| date | Mon, 11 Jan 2010 22:46:43 +0000 |
| parents | edfed0e32ced |
| children | 5bf7336ea0aa |
comparison
equal
deleted
inserted
replaced
| 58250:edfed0e32ced | 58251:8a5ac9ff5057 |
|---|---|
| 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__ 77400. | 5 __version__ 77422. |
| 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 */ |
| 6567 if (!m) return; | 6567 if (!m) return; |
| 6568 d = PyModule_GetDict(m); | 6568 d = PyModule_GetDict(m); |
| 6569 if (PyDict_SetItemString(d, "AST", (PyObject*)&AST_type) < 0) return; | 6569 if (PyDict_SetItemString(d, "AST", (PyObject*)&AST_type) < 0) return; |
| 6570 if (PyModule_AddIntConstant(m, "PyCF_ONLY_AST", PyCF_ONLY_AST) < 0) | 6570 if (PyModule_AddIntConstant(m, "PyCF_ONLY_AST", PyCF_ONLY_AST) < 0) |
| 6571 return; | 6571 return; |
| 6572 if (PyModule_AddStringConstant(m, "__version__", "77400") < 0) | 6572 if (PyModule_AddStringConstant(m, "__version__", "77422") < 0) |
| 6573 return; | 6573 return; |
| 6574 if (PyDict_SetItemString(d, "mod", (PyObject*)mod_type) < 0) return; | 6574 if (PyDict_SetItemString(d, "mod", (PyObject*)mod_type) < 0) return; |
| 6575 if (PyDict_SetItemString(d, "Module", (PyObject*)Module_type) < 0) | 6575 if (PyDict_SetItemString(d, "Module", (PyObject*)Module_type) < 0) |
| 6576 return; | 6576 return; |
| 6577 if (PyDict_SetItemString(d, "Interactive", (PyObject*)Interactive_type) | 6577 if (PyDict_SetItemString(d, "Interactive", (PyObject*)Interactive_type) |
