diff options
Diffstat (limited to 'Lib/sysconfig.py')
-rw-r--r-- | Lib/sysconfig.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/sysconfig.py b/Lib/sysconfig.py index 730718a..19847c9 100644 --- a/Lib/sysconfig.py +++ b/Lib/sysconfig.py @@ -296,6 +296,11 @@ def _parse_makefile(filename, vars=None): # bogus variable reference; just drop it since we can't deal variables.remove(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 |