view roundup/anypy/xmlrpc_.py @ 5555:7b663b588292 REST-rebased

Don't pass huge itemids into the backend. [[Ralf Schlatterbeck: Note that the original patch wasn't python3 compatible and used long instead of int. Verified that python2.7 can deal with long numeric strings, e.g. 2**64 * 10: int("184467440737095516160")]] committer: Ralf Schlatterbeck <rsc@runtux.com>
author martin.v.loewis <martin.v.loewis>
date Tue, 29 Jan 2019 15:13:44 +0100
parents db10c0a1f338
children 99d4fb22aa65
line wrap: on
line source

try:
    # Python 3+.
    from xmlrpc import client, server
    server.SimpleXMLRPCDispatcher
except (ImportError, AttributeError):
    # Python 2.
    import xmlrpclib as client
    import SimpleXMLRPCServer as server

Roundup Issue Tracker: http://roundup-tracker.org/