mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-01-29 10:24:51 +00:00
Fix building with Python 3.6
This commit is contained in:
parent
42deb7b583
commit
9c6d79e945
@ -82,7 +82,7 @@ for arch_xml in archs_xml:
|
|||||||
flags = dict()
|
flags = dict()
|
||||||
for flag_xml in arch_xml.getElementsByTagName("flag"):
|
for flag_xml in arch_xml.getElementsByTagName("flag"):
|
||||||
name = flag_xml.attributes["compiler"].value
|
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)
|
flags[name].append(flag_xml.firstChild.data)
|
||||||
#force kwargs keys to be of type str, not unicode for py25
|
#force kwargs keys to be of type str, not unicode for py25
|
||||||
kwargs = dict((str(k), v) for k, v in six.iteritems(kwargs))
|
kwargs = dict((str(k), v) for k, v in six.iteritems(kwargs))
|
||||||
|
Loading…
Reference in New Issue
Block a user