1
0
mirror of https://git.yoctoproject.org/poky synced 2026-06-03 01:40:07 +00:00

make exception handling syntax consistent

Update exception handling syntax to use the modern style:
except ExcType as localvar

(Bitbake rev: dbf5f42b06bef81749b13aa99945cc1292a6676d)

Signed-off-by: Scott Garman <scott.a.garman@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Scott Garman
2011-06-14 16:44:58 -07:00
committed by Richard Purdie
parent 039798a4d2
commit 62d538fbe6
10 changed files with 28 additions and 28 deletions
+2 -2
View File
@@ -64,7 +64,7 @@ class EventAdapter():
def send(self, event):
try:
self.queue.put(event)
except Exception, err:
except Exception as err:
print("EventAdapter puked: %s" % str(err))
@@ -168,7 +168,7 @@ class ProcessServer(Process):
exitcode = 0
finally:
util._exit_function()
except SystemExit, e:
except SystemExit as e:
if not e.args:
exitcode = 1
elif type(e.args[0]) is int: