Duncan Webb wrote:
> Dirk Meyer wrote:
>> Duncan Webb wrote:
>>> There is also an install problem in kaa, after the last update r3180.
>>>
>>> byte-compiling /usr/lib/python2.4/site-packages/kaa/net/tls.py to tls.pyc
>>>    File "/usr/lib/python2.4/site-packages/kaa/net/tls.py", line 187
>>>      yield c.handshakeClientCert(session=session, **kwargs)
>>> SyntaxError: 'yield' not allowed in a 'try' block with a 'finally' clause
>>> byte-compiling /usr/lib/python2.4/site-packages/kaa/net/mdns.py to mdns.pyc
>>> writing byte-compilation script '/tmp/tmpsdNhvO.py'
>>> /usr/bin/python -O /tmp/tmpsdNhvO.py
>>>    File "/usr/lib/python2.4/site-packages/kaa/net/tls.py", line 187
>>>      yield c.handshakeClientCert(session=session, **kwargs)
>>> SyntaxError: 'yield' not allowed in a 'try' block with a 'finally' clause
>> 
>> This is a problem. The code needs this and it works well with Python
>> 2.5. One idea is to just not install this file with Python 2.4 but I
>> have no idea how to do that. kaa.base should work with 2.4 and 2.5.
>
>
> What about an
> except:
>      self._handshake = False
>      raise
> self._handshake = False

In that case I would loose the traceback. I wonder if that will work:

| try:
|     ...
|     self._handshake = False
| except:
|     self._handshake = False
|     type, value, tb = sys.exc_info()
|     raise type, value, tb

Jason: is this the correct way?


Dischi

-- 
I intend to live forever - so far, so good.

Attachment: pgpDGdoJtLZhr.pgp
Description: PGP signature

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel

Reply via email to