diff options
author | Berker Peksag <berker.peksag@gmail.com> | 2015-02-20 07:39:38 (GMT) |
---|---|---|
committer | Berker Peksag <berker.peksag@gmail.com> | 2015-02-20 07:39:38 (GMT) |
commit | babc688180ac9214fcc217ef906b8d11c1babe36 (patch) | |
tree | cfb12c5f04cb23295f531d3f864ab98fd118a0d9 /Lib/http/client.py | |
parent | 56dee1e463d2a9962aca0c577a5782a89cce3dbb (diff) | |
download | cpython-babc688180ac9214fcc217ef906b8d11c1babe36.zip cpython-babc688180ac9214fcc217ef906b8d11c1babe36.tar.gz cpython-babc688180ac9214fcc217ef906b8d11c1babe36.tar.bz2 |
Issue #23439: Add missing entries to http.client.__all__.
Also, document the LineTooLong exception since it can be raised by
the members of public API (e.g. http.client.HTTPResponse).
Patch by Martin Panter.
Diffstat (limited to 'Lib/http/client.py')
-rw-r--r-- | Lib/http/client.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/http/client.py b/Lib/http/client.py index 6de4b0e..d3d9b30 100644 --- a/Lib/http/client.py +++ b/Lib/http/client.py @@ -74,12 +74,14 @@ import socket import collections from urllib.parse import urlsplit +# HTTPMessage, parse_headers(), and the HTTP status code constants are +# intentionally omitted for simplicity __all__ = ["HTTPResponse", "HTTPConnection", "HTTPException", "NotConnected", "UnknownProtocol", "UnknownTransferEncoding", "UnimplementedFileMode", "IncompleteRead", "InvalidURL", "ImproperConnectionState", "CannotSendRequest", "CannotSendHeader", "ResponseNotReady", - "BadStatusLine", "error", "responses"] + "BadStatusLine", "LineTooLong", "error", "responses"] HTTP_PORT = 80 HTTPS_PORT = 443 |