Staging
v0.5.1
https://github.com/python/cpython
Revision 2212ee2bee70fc9b4c76e79cc532f52673e5a13f authored by Victor Stinner on 30 November 2018, 19:45:04 UTC, committed by GitHub on 30 November 2018, 19:45:04 UTC
Fix DeprecationWarning when tests are run using python -3.
1 parent bc9f53f
Raw File
Tip revision: 2212ee2bee70fc9b4c76e79cc532f52673e5a13f authored by Victor Stinner on 30 November 2018, 19:45:04 UTC
Replace 1/0 with 1//0 in tests to avoid Python 3 warns (GH-10833)
Tip revision: 2212ee2
getversion.c

/* Return the full version string. */

#include "Python.h"

#include "patchlevel.h"

const char *
Py_GetVersion(void)
{
	static char version[250];
	PyOS_snprintf(version, sizeof(version), "%.80s (%.80s) %.80s",
		      PY_VERSION, Py_GetBuildInfo(), Py_GetCompiler());
	return version;
}
back to top