From b010501cd089e649a68f683be0cf4d0aac90fbe3 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Tue, 7 May 2013 13:55:55 +0100 Subject: 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 --- meta/lib/oe/qa.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'meta/lib/oe/qa.py') 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 "" -- cgit 1.2.3-korg