view roundup/anypy/http_.py @ 8264:09e8d1a4c796

docs: clarify wording, fix index, add superseder link Make superseder, messages etc. properties index entries point to the right place. Link to description of using Superseder in the original overview. fix bad wording on boolean properties.
author John Rouillard <rouilj@ieee.org>
date Wed, 08 Jan 2025 11:39:54 -0500
parents 9d2ad7386627
children
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
    client.TOO_MANY_REQUESTS = 429

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