Use PY_VERSION instead of PATCHLEVEL.
This commit is contained in:
parent
f1176c4815
commit
6e0a3499ab
|
@ -39,6 +39,7 @@ const char *
|
|||
Py_GetVersion()
|
||||
{
|
||||
static char version[80];
|
||||
sprintf(version, "%.10s (%.30s) %.30s", PATCHLEVEL, Py_GetBuildInfo(), Py_GetCompiler());
|
||||
sprintf(version, "%.10s (%.30s) %.30s", PY_VERSION,
|
||||
Py_GetBuildInfo(), Py_GetCompiler());
|
||||
return version;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue