summaryrefslogtreecommitdiff
path: root/Lib/sysconfig.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/sysconfig.py')
-rw-r--r--Lib/sysconfig.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/sysconfig.py b/Lib/sysconfig.py
index 4559cd712a..b8880f5355 100644
--- a/Lib/sysconfig.py
+++ b/Lib/sysconfig.py
@@ -251,6 +251,11 @@ def _parse_makefile(filename, vars=None):
else:
# bogus variable reference; just drop it since we can't deal
del notdone[name]
+ # strip spurious spaces
+ for k, v in done.items():
+ if isinstance(v, str):
+ done[k] = v.strip()
+
# save the results in the global dictionary
vars.update(done)
return vars