Mercurial > cpython-lru_cache-weakref
comparison Python/Python-ast.c @ 68428:5f23a6557e36
use only the hex version, since the revno is unreliable across repos
| author | Benjamin Peterson <benjamin@python.org> |
|---|---|
| date | Sun, 13 Mar 2011 16:36:08 -0500 |
| parents | 52940f7f3726 |
| children | 9b11cc4e2918 |
comparison
equal
deleted
inserted
replaced
| 68425:955547e57cff | 68428:5f23a6557e36 |
|---|---|
| 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__ 68410:0daa6ba25d9b. | 5 __version__ 0daa6ba25d9b. |
| 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 */ |
| 6737 d = PyModule_GetDict(m); | 6737 d = PyModule_GetDict(m); |
| 6738 if (PyDict_SetItemString(d, "AST", (PyObject*)&AST_type) < 0) return | 6738 if (PyDict_SetItemString(d, "AST", (PyObject*)&AST_type) < 0) return |
| 6739 NULL; | 6739 NULL; |
| 6740 if (PyModule_AddIntConstant(m, "PyCF_ONLY_AST", PyCF_ONLY_AST) < 0) | 6740 if (PyModule_AddIntConstant(m, "PyCF_ONLY_AST", PyCF_ONLY_AST) < 0) |
| 6741 return NULL; | 6741 return NULL; |
| 6742 if (PyModule_AddStringConstant(m, "__version__", "68410:0daa6ba25d9b") | 6742 if (PyModule_AddStringConstant(m, "__version__", "0daa6ba25d9b") < 0) |
| 6743 < 0) | |
| 6744 return NULL; | 6743 return NULL; |
| 6745 if (PyDict_SetItemString(d, "mod", (PyObject*)mod_type) < 0) return | 6744 if (PyDict_SetItemString(d, "mod", (PyObject*)mod_type) < 0) return |
| 6746 NULL; | 6745 NULL; |
| 6747 if (PyDict_SetItemString(d, "Module", (PyObject*)Module_type) < 0) | 6746 if (PyDict_SetItemString(d, "Module", (PyObject*)Module_type) < 0) |
| 6748 return NULL; | 6747 return NULL; |
