comparison Python/Python-ast.c @ 45470:3915d5f650fa legacy-trunk

Issue #2051 and patch from Alexander Belopolsky: Permission for pyc and pyo files are inherited from the py file.
author Christian Heimes <christian@cheimes.de>
date Sat, 23 Feb 2008 17:52:07 +0000
parents 393822f2ef90
children ca38f7a4b4c9
comparison
equal deleted inserted replaced
45469:47a58ca3e10e 45470:3915d5f650fa
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__ 53731. 5 __version__ 60978.
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 */
2956 if (!m) return; 2956 if (!m) return;
2957 d = PyModule_GetDict(m); 2957 d = PyModule_GetDict(m);
2958 if (PyDict_SetItemString(d, "AST", (PyObject*)AST_type) < 0) return; 2958 if (PyDict_SetItemString(d, "AST", (PyObject*)AST_type) < 0) return;
2959 if (PyModule_AddIntConstant(m, "PyCF_ONLY_AST", PyCF_ONLY_AST) < 0) 2959 if (PyModule_AddIntConstant(m, "PyCF_ONLY_AST", PyCF_ONLY_AST) < 0)
2960 return; 2960 return;
2961 if (PyModule_AddStringConstant(m, "__version__", "53731") < 0) 2961 if (PyModule_AddStringConstant(m, "__version__", "60978") < 0)
2962 return; 2962 return;
2963 if (PyDict_SetItemString(d, "mod", (PyObject*)mod_type) < 0) return; 2963 if (PyDict_SetItemString(d, "mod", (PyObject*)mod_type) < 0) return;
2964 if (PyDict_SetItemString(d, "Module", (PyObject*)Module_type) < 0) 2964 if (PyDict_SetItemString(d, "Module", (PyObject*)Module_type) < 0)
2965 return; 2965 return;
2966 if (PyDict_SetItemString(d, "Interactive", (PyObject*)Interactive_type) 2966 if (PyDict_SetItemString(d, "Interactive", (PyObject*)Interactive_type)