Mercurial > cpython-lru_cache-weakref
diff Python/getversion.c @ 5017:13d38eb7e225 legacy-trunk
get build info from elsewhere
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Mon, 20 Jan 1997 18:34:55 +0000 |
| parents | 65d2d8e67da3 |
| children | 728a083242a2 |
line wrap: on
line diff
--- a/Python/getversion.c Mon Jan 20 18:34:26 1997 +0000 +++ b/Python/getversion.c Mon Jan 20 18:34:55 1997 +0000 @@ -35,20 +35,13 @@ #include "patchlevel.h" -#define VERSION "%s (%s) %s" - -#ifdef __DATE__ -#define DATE __DATE__ -#else -#define DATE "October 13 1995" -#endif - extern const char *Py_GetCompiler(); +extern const char *Py_GetBuildInfo(); const char * Py_GetVersion() { static char version[80]; - sprintf(version, VERSION, PATCHLEVEL, DATE, Py_GetCompiler()); + sprintf(version, "%.10s (%.30s) %.30s", PATCHLEVEL, Py_GetBuildInfo(), Py_GetCompiler()); return version; }
