diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-05-07 13:55:55 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-05-09 14:06:50 +0100 |
commit | 2ac4f8b39711209ba9323fc221c1dcd185da57ea (patch) | |
tree | cbaa1e573abd13c7827a5b4a57724fd884df148b /meta/lib/oe/qa.py | |
parent | 00052fe69582f238166511e733d3ba875cbe0ad2 (diff) | |
download | ast2050-yocto-poky-2ac4f8b39711209ba9323fc221c1dcd185da57ea.zip ast2050-yocto-poky-2ac4f8b39711209ba9323fc221c1dcd185da57ea.tar.gz |
clases/lib: Use modern exception syntax
Update older code to use modern exception handling syntax which
is the form accepted by python 3.
(From OE-Core rev: b010501cd089e649a68f683be0cf4d0aac90fbe3)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oe/qa.py')
-rw-r--r-- | meta/lib/oe/qa.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oe/qa.py b/meta/lib/oe/qa.py index d9848c8..4777ddc 100644 --- a/meta/lib/oe/qa.py +++ b/meta/lib/oe/qa.py @@ -106,6 +106,6 @@ class ELFFile: bb.note("%s %s %s" % (objdump, cmd, self.name)) self.objdump_output[cmd] = bb.process.run([objdump, cmd, self.name], env=env, shell=False)[0] return self.objdump_output[cmd] - except Exception, e: + except Exception as e: bb.note("%s %s %s failed: %s" % (objdump, cmd, self.name, e)) return "" |