Discussion:
[Synopsis-devel] Synopsis and string exceptions
Carl Chenet
2010-06-23 21:47:24 UTC
Permalink
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 :)

Bye,
--
Carl Chenet

Blog: http://carlchenet.wordpress.com
Identi.ca: http://identi.ca/carlchenet
Stefan Seefeld
2010-06-24 14:24:55 UTC
Permalink
Carl,

thanks for reporting this issue.
Post by Carl Chenet
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
2010-06-24 14:54:02 UTC
Permalink
Post by Stefan Seefeld
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
Post by Stefan Seefeld
Carl,
thanks for reporting this issue.
Post by Carl Chenet
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...
_______________________________________________
Synopsis-devel mailing list
Synopsis-devel at lists.fresco.org
http://lists.fresco.org/cgi-bin/listinfo/synopsis-devel
--
Sent from my Android phone.
Stefan Seefeld
2010-06-24 15:48:48 UTC
Permalink
Post by chaica
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...
Loading...