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:04:18 +0100 |
commit | b010501cd089e649a68f683be0cf4d0aac90fbe3 (patch) | |
tree | ce5c7cba76051675e4a765dd677ffed372d4e33a /meta/lib/oe/qa.py | |
parent | 3c104443506cb89d72944e46096a94a80838a707 (diff) | |
download | openembedded-core-b010501cd089e649a68f683be0cf4d0aac90fbe3.tar.gz openembedded-core-b010501cd089e649a68f683be0cf4d0aac90fbe3.tar.bz2 openembedded-core-b010501cd089e649a68f683be0cf4d0aac90fbe3.zip |
clases/lib: Use modern exception syntax
Update older code to use modern exception handling syntax which
is the form accepted by python 3.
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 d9848c8e4a..4777ddc06a 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 "" |