add debbug reference to SimpleXMLRPCDispatcher workaround

Signed-off-by: martin f. krafft <madduck@madduck.net>
master
martin f. krafft 2008-03-12 14:30:05 +01:00 committed by Joey Hess
parent 5cc97e1df4
commit 46976ac142
1 changed files with 1 additions and 0 deletions

View File

@ -62,6 +62,7 @@ def rpc_call(cmd, **kwargs):
class SimpleStdinOutXMLRPCHandler(SimpleXMLRPCDispatcher): class SimpleStdinOutXMLRPCHandler(SimpleXMLRPCDispatcher):
def __init__(self, allow_none=False, encoding=None): def __init__(self, allow_none=False, encoding=None):
# see http://bugs.debian.org/470645
if SimpleXMLRPCDispatcher.__init__.func_code.co_argcount == 1: if SimpleXMLRPCDispatcher.__init__.func_code.co_argcount == 1:
# python2.4 and before only took one argument # python2.4 and before only took one argument
SimpleXMLRPCDispatcher.__init__(self) SimpleXMLRPCDispatcher.__init__(self)