* Bitbake exception handling syntax.
@ 2011-06-14 23:44 Scott Garman
2011-06-15 0:08 ` Chris Larson
0 siblings, 1 reply; 2+ messages in thread
From: Scott Garman @ 2011-06-14 23:44 UTC (permalink / raw)
To: bitbake-devel
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.
Scott
--
Scott Garman
Embedded Linux Engineer - Yocto Project
Intel Open Source Technology Center
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Bitbake exception handling syntax.
2011-06-14 23:44 Bitbake exception handling syntax Scott Garman
@ 2011-06-15 0:08 ` Chris Larson
0 siblings, 0 replies; 2+ messages in thread
From: Chris Larson @ 2011-06-15 0:08 UTC (permalink / raw)
To: Scott Garman; +Cc: bitbake-devel
On Tue, Jun 14, 2011 at 4:44 PM, Scott Garman <scott.a.garman@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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-06-15 0:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-14 23:44 Bitbake exception handling syntax Scott Garman
2011-06-15 0:08 ` Chris Larson
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.