Merge pull request #8577 from lassebm/fix-makefile-export-with-python-3

Fix Makefile export with Python 3
pull/8624/head
Cruz Monrreal 2018-11-01 15:34:58 -05:00 committed by GitHub
commit 48bb1a54f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -165,7 +165,7 @@ class Makefile(Exporter):
flags = {}
for k, v in self.flags.items():
if k in ['c_flags', 'cxx_flags']:
flags[k] = map(lambda x: x.replace('"', '\\"'), v)
flags[k] = list(map(lambda x: x.replace('"', '\\"'), v))
else:
flags[k] = v