view roundup/anypy/http_.py @ 8319:5e6ff4e9cacb

build: issue2551397: remove support for python 3.6 One last file with a 3.6 reference.
author John Rouillard <rouilj@ieee.org>
date Sun, 11 May 2025 20:31:16 -0400
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/