view roundup/anypy/xmlrpc_.py @ 5926:3ca3bfe6de16

Code-robustness, error-message improved .. for REST-API PATCH method with @op = action
author Ralf Schlatterbeck <rsc@runtux.com>
date Tue, 15 Oct 2019 16:23:06 +0200
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/