Carl Chenet | 23 Jun 2010 23:47
Gravatar

Synopsis and string exceptions

Hi !

I'm the Debian maintainer of the Synopsis package.

One of the changes brought by Python 2.6 is the removal of string
exceptions, so they won't work in Python 2.6 (just a side note: they
were also buggy before, since they were not guaranteed to work
reliable even in <2.6); as an example:

$ python2.5 -c "raise 'eggs'"
-c:1: DeprecationWarning: raising a string exception is deprecated
Traceback (most recent call last):
  File "<string>", line 1, in <module>
eggs

$ python2.6 -c "raise 'eggs'"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
TypeError: exceptions must be old-style classes or derived from
BaseException, not str

Since 2.6 is the planned default version for the upcoming new Debian
stable release, Synopsis could be impacted by this issue.

The issues are here :

string-literal-exception /usr/lib/synopsis/Synopsis/Parsers/Python/SXRGenerator.py:147
string-literal-exception /usr/lib/synopsis/Synopsis/Parsers/Python/SXRGenerator.py:156

I could patch myself but I'd prefer these patches to be upstream :)
(Continue reading)

Stefan Seefeld | 24 Jun 2010 16:24

Re: Synopsis and string exceptions

Carl,

thanks for reporting this issue.

On 06/23/2010 05:47 PM, Carl Chenet wrote:
> The issues are here :
>
> string-literal-exception /usr/lib/synopsis/Synopsis/Parsers/Python/SXRGenerator.py:147
> string-literal-exception /usr/lib/synopsis/Synopsis/Parsers/Python/SXRGenerator.py:156
>
> I could patch myself but I'd prefer these patches to be upstream :)
>    

Yes, definitely. I'll make sure the fix is in the next release (which I 
hope will happen soon, as there are other fixes, too).

Thanks,
         Stefan

-- 

--

-- 

       ...ich hab' noch einen Koffer in Berlin...
chaica@ohmytux.com | 24 Jun 2010 16:54
Gravatar

Re: Synopsis and string exceptions


"Stefan Seefeld" <stefan <at> fresco.org> a écrit :

>Yes, definitely. I'll make sure the fix is in the next release (which I 
>hope will happen soon, as there are other fixes, too).

Debian intends to freeze for the next stable release in late august. I'll  have to patch the synopsis package
before given the fact that  python2.6 will be the default python. Given this tight schedule I'll may patch
the current synopsis package in ordre to haver synopsis working in the next debian release. We'll see how
it comes.  

Bye,
Carl Chenet

"Stefan Seefeld" <stefan <at> fresco.org> a écrit :

>Carl,
>
>thanks for reporting this issue.
>
>On 06/23/2010 05:47 PM, Carl Chenet wrote:
>> The issues are here :
>>
>> string-literal-exception /usr/lib/synopsis/Synopsis/Parsers/Python/SXRGenerator.py:147
>> string-literal-exception /usr/lib/synopsis/Synopsis/Parsers/Python/SXRGenerator.py:156
>>
>> I could patch myself but I'd prefer these patches to be upstream :)
>>    
>
>Yes, definitely. I'll make sure the fix is in the next release (which I 
(Continue reading)

Stefan Seefeld | 24 Jun 2010 17:48

Re: Synopsis and string exceptions

On 06/24/2010 10:54 AM, chaica <at> ohmytux.com wrote:
>
> Debian intends to freeze for the next stable release in late august. I'll  have to patch the synopsis
package before given the fact that  python2.6 will be the default python. Given this tight schedule I'll
may patch the current synopsis package in ordre to haver synopsis working in the next debian release.
We'll see how it comes.
>    

OK, thanks for the heads up. I may actually try to get the next Synopsis 
release out before that.

Thanks,
         Stefan

--

-- 

       ...ich hab' noch einen Koffer in Berlin...

Gmane