mirror of
https://github.com/python/cpython.git
synced 2024-11-24 02:15:30 +08:00
merge 3.1
This commit is contained in:
commit
fdb2d909a4
@ -1700,7 +1700,7 @@ MODULE_INITFUNC(void)
|
||||
|
||||
version = PyUnicode_FromString(PY_VERSION);
|
||||
if (!version)
|
||||
return;
|
||||
return NULL;
|
||||
PyModule_AddObject(m, "__version__", version);
|
||||
PyModule_AddStringConstant(m, "EXPAT_VERSION",
|
||||
(char *) XML_ExpatVersion());
|
||||
|
Loading…
Reference in New Issue
Block a user