Mercurial > p > roundup > code
view roundup/anypy/xmlrpc_.py @ 6021:c588e64718fc
flake8 fixes. use except ImportError; use callable() not hasattr(x, '__call__')
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Thu, 02 Jan 2020 20:50:41 -0500 |
| 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
