view roundup/anypy/xmlrpc_.py @ 5807:0467d80eaeec

Try to deal with this warning/error: DeprecationWarning: generator 'iter_roles' raised StopIteration PEP479 specifies how to rework it by using return rather than raise StopIteration. I am not sure if this is right, but test/test_cgi.py::FormTestCase::testRoles is still passing.
author John Rouillard <rouilj@ieee.org>
date Wed, 12 Jun 2019 19:38:33 -0400
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/