summaryrefslogtreecommitdiffstats
path: root/Lib/http
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2015-02-20 07:45:05 (GMT)
committerBerker Peksag <berker.peksag@gmail.com>2015-02-20 07:45:05 (GMT)
commit8e286794173376350dfdf7d99ac688b1827a38a3 (patch)
treef5fbb319f6cef0a8ab43530ff3b763a361166b2a /Lib/http
parent868a5a7bc65a4b76a8e7d5d0d60a158f3da27a89 (diff)
parentbabc688180ac9214fcc217ef906b8d11c1babe36 (diff)
downloadcpython-8e286794173376350dfdf7d99ac688b1827a38a3.zip
cpython-8e286794173376350dfdf7d99ac688b1827a38a3.tar.gz
cpython-8e286794173376350dfdf7d99ac688b1827a38a3.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')
-rw-r--r--Lib/http/client.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/http/client.py b/Lib/http/client.py
index a77e501..5e12a85 100644
--- a/Lib/http/client.py
+++ b/Lib/http/client.py
@@ -75,12 +75,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