Mercurial > p > roundup > code
changeset 5012:6b7f257e5de8
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
| author | John Kristensen <john@jerrykan.com> |
|---|---|
| date | Thu, 13 Aug 2015 14:45:53 +1000 |
| parents | d5da643b3d25 |
| children | c1443d96ac94 |
| files | roundup/xmlrpc.py |
| diffstat | 1 files changed, 1 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/roundup/xmlrpc.py Fri Feb 13 00:20:43 2015 +1100 +++ b/roundup/xmlrpc.py Thu Aug 13 14:45:53 2015 +1000 @@ -190,13 +190,7 @@ def __init__(self, db, actions, translator, allow_none=False, encoding=None): - - try: - # python2.5 and beyond - SimpleXMLRPCDispatcher.__init__(self, allow_none, encoding) - except TypeError: - # python2.4 - SimpleXMLRPCDispatcher.__init__(self) + SimpleXMLRPCDispatcher.__init__(self, allow_none, encoding) self.register_instance(RoundupInstance(db, actions, translator)) self.register_multicall_functions()
