diff options
author | Konrad Scherer <Konrad.Scherer@windriver.com> | 2013-10-17 10:17:20 -0400 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-12-12 17:00:02 +0000 |
commit | 76e0ce8229492c730b7d0af14c73f40c21c21ae1 (patch) | |
tree | 98465b615d46bcdb6796a8425424b9c1b2f44c34 /meta/recipes-kernel/perf/perf.bb | |
parent | fc9f1c8168118010602f4e43ad954173e95cf63c (diff) | |
download | poky-76e0ce8229492c730b7d0af14c73f40c21c21ae1.tar.gz |
relocate_sdk.py: Allow script to work with Python 2.4 and 3.
Python 2.4 does not support the 'b' string literal or the
keyword 'as' in exception handling. Python 3 does not accept
the old method of exception handling and defaults to unicode.
The b() function converts strings to bytes on Python 3 and
using sys.exc_info() avoids the exception handling syntax.
(From OE-Core master rev: 1e2ec5f576f167673d7980737826987fefdc74a9)
(From OE-Core rev: 343127f2f81be337596d3eacbbc92278e82ce574)
Signed-off-by: Konrad Scherer <Konrad.Scherer@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-kernel/perf/perf.bb')
0 files changed, 0 insertions, 0 deletions