view roundup/anypy/xmlrpc_.py @ 5464:22eecc8a8bd4

fixed backend detection for Python 3
author Christof Meerwald <cmeerw@cmeerw.org>
date Sat, 28 Jul 2018 14:12:06 +0100
parents e46ce04d5bbc
children db10c0a1f338
line wrap: on
line source

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

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