#959: fixed: python2.4/wspbus/ChannelFailure/__init__: calls to super raises with
TypeError
-------------------------+--------------------------------------------------
Reporter:
a...@xbits.de | Owner: fumanchu
Type: defect | Status: new
Priority: normal | Milestone: 3.2
Component: engine | Resolution:
Keywords: |
-------------------------+--------------------------------------------------
Changes (by
a...@xbits.de):
* summary: python2.4/wspbus/ChannelFailure/__init__: calls to super
raises with TypeError => fixed:
python2.4/wspbus/ChannelFailure/__init__: calls
to super raises with TypeError
Comment:
I found the reason. Exception (the base class of class ChannelFailures) is
an old style class up to python2.4 and super only works for new style
classes.
Patch against trunk (also attached):
{{{
Index: cherrypy/process/wspbus.py
===================================================================
--- cherrypy/process/wspbus.py (Revision 2528)
+++ cherrypy/process/wspbus.py (Arbeitskopie)
@@ -84,7 +84,7 @@
delimiter = '\n'
def __init__(self, *args, **kwargs):
- super(ChannelFailures, self).__init__(*args, **kwargs)
+ Exception.__init__(self, *args, **kwargs)
self._exceptions = list()
def handle_exception(self):