summaryrefslogtreecommitdiff
path: root/Python/sysmodule.c
diff options
context:
space:
mode:
Diffstat (limited to 'Python/sysmodule.c')
-rw-r--r--Python/sysmodule.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/Python/sysmodule.c b/Python/sysmodule.c
index 4598a3ce74..eb548b4f85 100644
--- a/Python/sysmodule.c
+++ b/Python/sysmodule.c
@@ -978,8 +978,13 @@ svnversion_init(void)
return;
python = strstr(headurl, "/python/");
- if (!python)
- Py_FatalError("subversion keywords missing");
+ if (!python) {
+ *patchlevel_revision = '\0';
+ strcpy(branch, "");
+ strcpy(shortbranch, "unknown");
+ svn_revision = "";
+ return;
+ }
br_start = python + 8;
br_end = strchr(br_start, '/');