Mercurial > p > roundup > code
view roundup/anypy/xmlrpc_.py @ 7768:609c5fd638e8
chore: multiple changes for ruff: imports, spacing, == -> is
sort imports
use is to compare types not ==
turn foo[n-1] into foo[n - 1]
allow some loop vars to change value in loop (PLW2901)
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Sat, 02 Mar 2024 04:13:28 -0500 |
| 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
