view roundup/anypy/http_.py @ 8207:894eabf95385

chore(ruff): sort imports.
author John Rouillard <rouilj@ieee.org>
date Wed, 11 Dec 2024 15:26:32 -0500
parents ce04a489312e
children 9d2ad7386627
line wrap: on
line source

try:
    # Python 3+
    from http import client, server
except (ImportError, AttributeError):
    # Python 2.5-2.7
    import BaseHTTPServer as server  # noqa: F401
    import httplib as client  # noqa: F401

Roundup Issue Tracker: http://roundup-tracker.org/