mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
remove __version__s dependent on subversion keyword expansion (closes #12221)
This commit is contained in:
parent
9e3e1c6e4e
commit
8c6f88efa2
13 changed files with 94 additions and 104 deletions
|
@ -1662,7 +1662,6 @@ MODULE_INITFUNC(void)
|
|||
PyObject *errors_module;
|
||||
PyObject *modelmod_name;
|
||||
PyObject *model_module;
|
||||
PyObject *version;
|
||||
PyObject *sys_modules;
|
||||
PyObject *tmpnum, *tmpstr;
|
||||
PyObject *codes_dict;
|
||||
|
@ -1699,10 +1698,6 @@ MODULE_INITFUNC(void)
|
|||
Py_INCREF(&Xmlparsetype);
|
||||
PyModule_AddObject(m, "XMLParserType", (PyObject *) &Xmlparsetype);
|
||||
|
||||
version = PyUnicode_FromString(PY_VERSION);
|
||||
if (!version)
|
||||
return;
|
||||
PyModule_AddObject(m, "__version__", version);
|
||||
PyModule_AddStringConstant(m, "EXPAT_VERSION",
|
||||
(char *) XML_ExpatVersion());
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue