Mercurial > p > roundup > code
view roundup/anypy/xmlrpc_.py @ 6358:42db48c30d31
Validate indexer values
Make sure that indexer values are one of the supported indexers.
Invalid values would have raised an invalid indexer exception on
access.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Tue, 30 Mar 2021 02:24:22 -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
