"Fossies" - the Fresh Open Source Software Archive

Member "roundup-2.0.0/roundup/anypy/http_.py" (29 Feb 2020, 214 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. See also the latest Fossies "Diffs" side-by-side code changes report for "http_.py": 1.6.1_vs_2.0.0.

    1 try:
    2     # Python 3+
    3     from http import client, server
    4     server.DEFAULT_ERROR_MESSAGE
    5 except (ImportError, AttributeError):
    6     # Python 2.5-2.7
    7     import httplib as client
    8     import BaseHTTPServer as server