[bitbake-devel] Bitbake exception handling syntax.

Chris Larson clarson at kergoth.com
Wed Jun 15 00:08:05 UTC 2011


On Tue, Jun 14, 2011 at 4:44 PM, Scott Garman <scott.a.garman at intel.com> wrote:
> In a failed attempt to make bitbake pass the parsing stage with python v3, I
> noticed that the syntax we use for exception handling is inconsistent.
>
> The old way is to do: except ExcType, localvar
> The new way is: except ExcType as localvar
>
> We're using the new syntax (which is python v3.x compatible) throughout most
> of the code, so the patch I'm about to submit cleans up the remaining cases
> using the old syntax.

That sounds good to me. I converted all of them at one point, but the
code has changed since then :)
-- 
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics




More information about the bitbake-devel mailing list