--- a/targets/__init__.py Mon Mar 27 10:19:14 2023 +0200
+++ b/targets/__init__.py Fri Oct 28 12:39:15 2022 +0800
@@ -35,7 +35,7 @@
"""
-from __future__ import absolute_import
+
from os import listdir, path
import util.paths as paths
@@ -69,12 +69,12 @@
targetchoices = ""
# Get all xsd toolchains
- for toolchainname, xsdfilename in toolchains.iteritems():
+ for toolchainname, xsdfilename in toolchains.items():
if path.isfile(xsdfilename):
DictXSD_toolchain["toolchain_"+toolchainname] = open(xsdfilename).read()
# Get all xsd targets
- for target_name, nfo in targets.iteritems():
+ for target_name, nfo in targets.items():
xsd_string = open(nfo["xsd"]).read()
targetchoices += xsd_string % dict(DictXSD_toolchain,
target_name=target_name)