summaryrefslogtreecommitdiff
path: root/meta/recipes-extended/gamin
diff options
context:
space:
mode:
authorKonrad Scherer <Konrad.Scherer@windriver.com>2013-10-17 10:17:20 -0400
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-10-26 15:53:25 +0100
commit1e2ec5f576f167673d7980737826987fefdc74a9 (patch)
treed40921ea85e675358e2d5cba35ece24290f3a21b /meta/recipes-extended/gamin
parent39383e9bf1aa5e29d33d8af7f8e690d2238fd14f (diff)
downloadopenembedded-core-1e2ec5f576f167673d7980737826987fefdc74a9.tar.gz
openembedded-core-1e2ec5f576f167673d7980737826987fefdc74a9.tar.bz2
openembedded-core-1e2ec5f576f167673d7980737826987fefdc74a9.zip
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. Signed-off-by: Konrad Scherer <Konrad.Scherer@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta/recipes-extended/gamin')
0 files changed, 0 insertions, 0 deletions