targets/__init__.py
changeset 1847 6198190bc121
parent 1785 0ff2a45dcefa
child 1881 091005ec69c4
--- a/targets/__init__.py	Tue Oct 03 16:31:31 2017 +0300
+++ b/targets/__init__.py	Thu Oct 05 16:38:49 2017 +0300
@@ -72,7 +72,7 @@
             DictXSD_toolchain["toolchain_"+toolchainname] = open(xsdfilename).read()
 
     # Get all xsd targets
-    for targetname, nfo in targets.iteritems():
+    for _targetname, nfo in targets.iteritems():
         xsd_string = open(nfo["xsd"]).read()
         targetchoices += xsd_string % DictXSD_toolchain
 
@@ -81,7 +81,7 @@
 
 def GetTargetCode(targetname):
     codedesc = targets[targetname]["code"]
-    code = "\n".join([open(fpath).read() for fname, fpath in sorted(codedesc.items())])
+    code = "\n".join([open(fpath).read() for _fname, fpath in sorted(codedesc.items())])
     return code