Skip to content

Commit 6e0a349

Browse files
committed
Use PY_VERSION instead of PATCHLEVEL.
1 parent f1176c4 commit 6e0a349

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Python/getversion.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ const char *
3939
Py_GetVersion()
4040
{
4141
static char version[80];
42-
sprintf(version, "%.10s (%.30s) %.30s", PATCHLEVEL, Py_GetBuildInfo(), Py_GetCompiler());
42+
sprintf(version, "%.10s (%.30s) %.30s", PY_VERSION,
43+
Py_GetBuildInfo(), Py_GetCompiler());
4344
return version;
4445
}

0 commit comments

Comments
 (0)