Fix building with Python 3.6

This commit is contained in:
Carles Fernandez 2017-11-15 01:23:05 +01:00
parent 42deb7b583
commit 9c6d79e945
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ for arch_xml in archs_xml:
flags = dict()
for flag_xml in arch_xml.getElementsByTagName("flag"):
name = flag_xml.attributes["compiler"].value
if not flags.has_key(name): flags[name] = list()
if name not in flags: flags[name] = list()
flags[name].append(flag_xml.firstChild.data)
#force kwargs keys to be of type str, not unicode for py25
kwargs = dict((str(k), v) for k, v in six.iteritems(kwargs))