[OE-core] [PATCH] relocate_sdk.py: Allow script to work with Python 2.4 and 3.

2013-10-17 Thread Konrad Scherer
From: Konrad Scherer 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 exce

Re: [OE-core] [PATCH] relocate_sdk.py: Allow script to work with Python 2.4 and 3.

2013-10-17 Thread Laurentiu Palcu
On Thu, Oct 17, 2013 at 09:54:11AM +0300, Laurentiu Palcu wrote: > On Wed, Oct 16, 2013 at 11:44:59AM -0400, Konrad Scherer wrote: > > From: Konrad Scherer > > > > Python 2.4 does not support the 'b' string literal or the > > keyword 'as' in exception handling. Python 3 does not accept > > the ol

Re: [OE-core] [PATCH] relocate_sdk.py: Allow script to work with Python 2.4 and 3.

2013-10-16 Thread Laurentiu Palcu
On Wed, Oct 16, 2013 at 11:44:59AM -0400, Konrad Scherer wrote: > From: Konrad Scherer > > 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 co

[OE-core] [PATCH] relocate_sdk.py: Allow script to work with Python 2.4 and 3.

2013-10-16 Thread Konrad Scherer
From: Konrad Scherer 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 exce