summaryrefslogtreecommitdiffstats
path: root/lib/bb/data.py
diff options
context:
space:
mode:
authorScott Garman <scott.a.garman@intel.com>2011-06-14 16:44:58 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-06-15 11:08:43 +0100
commitdbf5f42b06bef81749b13aa99945cc1292a6676d (patch)
tree04b6a3bdb3b4dfcae58ad0e233eb700317736984 /lib/bb/data.py
parent9bff182a4ba9571679985b45b309990a6eddad14 (diff)
downloadopenembedded-core-contrib-dbf5f42b06bef81749b13aa99945cc1292a6676d.tar.gz
make exception handling syntax consistent
Update exception handling syntax to use the modern style: except ExcType as localvar Signed-off-by: Scott Garman <scott.a.garman@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/data.py')
-rw-r--r--lib/bb/data.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/data.py b/lib/bb/data.py
index 720dd76ef6..2269f9dc74 100644
--- a/lib/bb/data.py
+++ b/lib/bb/data.py
@@ -187,7 +187,7 @@ def emit_var(var, o=sys.__stdout__, d = init(), all=False):
val = getVar(var, d, 1)
except (KeyboardInterrupt, bb.build.FuncFailed):
raise
- except Exception, exc:
+ except Exception as exc:
o.write('# expansion of %s threw %s: %s\n' % (var, exc.__class__.__name__, str(exc)))
return 0