| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 2fff2e6 commit 554fa49
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -35,20 +35,13 @@ PERFORMANCE OF THIS SOFTWARE. | |||
| 35 | 35 | ||
| 36 | 36 | #include "patchlevel.h" | |
| 37 | 37 | ||
| 38 | - #define VERSION "%s (%s) %s" | ||
| 39 | - | ||
| 40 | - #ifdef __DATE__ | ||
| 41 | - #define DATE __DATE__ | ||
| 42 | - #else | ||
| 43 | - #define DATE "October 13 1995" | ||
| 44 | - #endif | ||
| 45 | - | ||
| 46 | 38 | extern const char *Py_GetCompiler(); | |
| 39 | + extern const char *Py_GetBuildInfo(); | ||
| 47 | 40 | ||
| 48 | 41 | const char * | |
| 49 | 42 | Py_GetVersion() | |
| 50 | 43 | { | |
| 51 | 44 | static char version[80]; | |
| 52 | - sprintf(version, VERSION, PATCHLEVEL, DATE, Py_GetCompiler()); | ||
| 45 | + sprintf(version, "%.10s (%.30s) %.30s", PATCHLEVEL, Py_GetBuildInfo(), Py_GetCompiler()); | ||
| 53 | 46 | return version; | |
| 54 | 47 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments