Skip to content

Commit dd4c291

Browse files
committed
Simplify SimpleXMLRPCDispatcher initialisation
Support for Python v2.4 has been dropped a while ago so we can remove the compatibility support for initialising SimpleXMLRPCDispatcher with version of Python older than v2.5
1 parent dbed319 commit dd4c291

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

roundup/xmlrpc.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -190,13 +190,7 @@ class RoundupDispatcher(SimpleXMLRPCDispatcher):
190190

191191
def __init__(self, db, actions, translator,
192192
allow_none=False, encoding=None):
193-
194-
try:
195-
# python2.5 and beyond
196-
SimpleXMLRPCDispatcher.__init__(self, allow_none, encoding)
197-
except TypeError:
198-
# python2.4
199-
SimpleXMLRPCDispatcher.__init__(self)
193+
SimpleXMLRPCDispatcher.__init__(self, allow_none, encoding)
200194
self.register_instance(RoundupInstance(db, actions, translator))
201195
self.register_multicall_functions()
202196

0 commit comments

Comments
 (0)