mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Use PY_VERSION instead of PATCHLEVEL.
This commit is contained in:
parent
f1176c4815
commit
6e0a3499ab
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue