Mercurial > p > roundup > code
view roundup/anypy/xmlrpc_.py @ 7605:5b3ecdfd77f7
refactor(api): extract api rate limit handling; add default val
Add handle_apiRateLimitExceeded to simplify dispatch() method.
Add default value for pretty_print=True to format_dispatch_output.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Wed, 16 Aug 2023 13:35:25 -0400 |
| parents | 99d4fb22aa65 |
| children | 7b33365ccb2a |
line wrap: on
line source
try: # Python 3+. from xmlrpc import client, server server.SimpleXMLRPCDispatcher except (ImportError, AttributeError): # Python 2. import xmlrpclib as client # noqa: F401 import SimpleXMLRPCServer as server
