summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
Diffstat (limited to 'Modules')
-rw-r--r--Modules/getbuildinfo.c34
1 files changed, 8 insertions, 26 deletions
diff --git a/Modules/getbuildinfo.c b/Modules/getbuildinfo.c
index 446340b..8b1ca22 100644
--- a/Modules/getbuildinfo.c
+++ b/Modules/getbuildinfo.c
@@ -21,38 +21,20 @@
#endif
#ifndef BUILD
-#define BUILD "$Revision$"
+#define BUILD "0"
#endif
const char *
-Py_GetBuildNumber(void)
-{
- static char buildno[20];
- static int buildno_okay;
-
- if (!buildno_okay) {
- char *build = BUILD;
- int len = strlen(build);
-
- if (len > 13 &&
- !strncmp(build, "$Revision: ", 11) &&
- !strcmp(build + len - 2, " $"))
- {
- memcpy(buildno, build + 11, len - 13);
- }
- else {
- memcpy(buildno, build, 19);
- }
- buildno_okay = 1;
- }
- return buildno;
-}
-
-const char *
Py_GetBuildInfo(void)
{
static char buildinfo[50];
PyOS_snprintf(buildinfo, sizeof(buildinfo),
- "#%s, %.20s, %.9s", Py_GetBuildNumber(), DATE, TIME);
+ "%s, %.20s, %.9s", BUILD, DATE, TIME);
return buildinfo;
}
+
+const char *
+Py_GetBuildNumber(void)
+{
+ return BUILD;
+}