diff -r 3abde7651c38 -r 14b40afccd69 targets/toolchain_gcc.py --- a/targets/toolchain_gcc.py Tue Oct 03 16:12:55 2017 +0300 +++ b/targets/toolchain_gcc.py Tue Oct 03 16:31:31 2017 +0300 @@ -73,7 +73,7 @@ def GetBinaryCode(self): try: return open(self.exe_path, "rb").read() - except Exception, e: + except Exception: return None def _GetMD5FileName(self): @@ -83,7 +83,7 @@ self.md5key = None try: os.remove(self._GetMD5FileName()) - except Exception, e: + except Exception: pass def GetBinaryCodeMD5(self): @@ -92,7 +92,7 @@ else: try: return open(self._GetMD5FileName(), "r").read() - except Exception, e: + except Exception: return None def SetBuildPath(self, buildpath): @@ -206,8 +206,6 @@ # Link all the object files into one binary file self.CTRInstance.logger.write(_("Linking :\n")) if relink: - objstring = [] - # Generate list .o files listobjstring = '"' + '" "'.join(objs) + '"'