Comment 6 for bug 506357

Revision history for this message
Matt Zimmerman (mdz) wrote : Re: [Bug 506357] Re: package python-pyatspi 1.29.5-0ubuntu1 failed to install/upgrade: invalid syntax error for python2.4

On Tue, Jan 12, 2010 at 01:02:59PM -0000, Daniel Knittl-Frank wrote:
> should read:
>
> try:
> try:
> import gconf
> gconfClient = gconf.client_get_default()
> useDbus = gconfClient.get_bool("/desktop/gnome/interface/at-spi-dbus")
> except:
> useDbus = False
> finally:
> del gconfClient
> del gconf
>
> this worked for me, although i don't understand how this occured,
> default python version on my system is 2.6 -- which already allows try …
> except … finally

As can be seen in the log excerpt, the error occurred when trying to
byte-compile the module for python 2.4.

--
 - mdz