Mercurial > cpython-lru_cache-weakref
comparison Python/Python-ast.c @ 71455:08932ec9ddb1 3.2
hardcode the old svn __version__
| author | Benjamin Peterson <benjamin@python.org> |
|---|---|
| date | Fri, 22 Jul 2011 10:39:12 -0500 |
| parents | 3301689bd78d |
| children | c9ebae3285e3 34d0b02a01e4 |
comparison
equal
deleted
inserted
replaced
| 71454:3301689bd78d | 71455:08932ec9ddb1 |
|---|---|
| 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__ . | 5 __version__ 82163. |
| 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 */ |
| 6754 d = PyModule_GetDict(m); | 6754 d = PyModule_GetDict(m); |
| 6755 if (PyDict_SetItemString(d, "AST", (PyObject*)&AST_type) < 0) return | 6755 if (PyDict_SetItemString(d, "AST", (PyObject*)&AST_type) < 0) return |
| 6756 NULL; | 6756 NULL; |
| 6757 if (PyModule_AddIntConstant(m, "PyCF_ONLY_AST", PyCF_ONLY_AST) < 0) | 6757 if (PyModule_AddIntConstant(m, "PyCF_ONLY_AST", PyCF_ONLY_AST) < 0) |
| 6758 return NULL; | 6758 return NULL; |
| 6759 if (PyModule_AddStringConstant(m, "__version__", "") < 0) | 6759 if (PyModule_AddStringConstant(m, "__version__", "82163") < 0) |
| 6760 return NULL; | 6760 return NULL; |
| 6761 if (PyDict_SetItemString(d, "mod", (PyObject*)mod_type) < 0) return | 6761 if (PyDict_SetItemString(d, "mod", (PyObject*)mod_type) < 0) return |
| 6762 NULL; | 6762 NULL; |
| 6763 if (PyDict_SetItemString(d, "Module", (PyObject*)Module_type) < 0) | 6763 if (PyDict_SetItemString(d, "Module", (PyObject*)Module_type) < 0) |
| 6764 return NULL; | 6764 return NULL; |
