"Fossies" - the Fresh Open Source Software Archive

Member "roundup-2.0.0/roundup/anypy/xmlrpc_.py" (29 Feb 2020, 233 Bytes) of package /linux/www/roundup-2.0.0.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Python source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 try:
    2     # Python 3+.
    3     from xmlrpc import client, server
    4     server.SimpleXMLRPCDispatcher
    5 except (ImportError, AttributeError):
    6     # Python 2.
    7     import xmlrpclib as client  # noqa: F401
    8     import SimpleXMLRPCServer as server