Use PY_VERSION instead of PATCHLEVEL.

This commit is contained in:
Guido van Rossum 1999-01-03 12:41:50 +00:00
parent f1176c4815
commit 6e0a3499ab
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}