diff options
author | Scott Garman <scott.a.garman@intel.com> | 2011-06-14 16:44:58 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-06-15 11:08:43 +0100 |
commit | dbf5f42b06bef81749b13aa99945cc1292a6676d (patch) | |
tree | 04b6a3bdb3b4dfcae58ad0e233eb700317736984 /lib/bb/data.py | |
parent | 9bff182a4ba9571679985b45b309990a6eddad14 (diff) | |
download | bitbake-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.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/data.py b/lib/bb/data.py index 720dd76ef..2269f9dc7 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 |