summaryrefslogtreecommitdiff
path: root/Lib/http
diff options
context:
space:
mode:
authorAndrew Svetlov <andrew.svetlov@gmail.com>2012-12-18 23:10:48 +0200
committerAndrew Svetlov <andrew.svetlov@gmail.com>2012-12-18 23:10:48 +0200
commit0832af6628ca5ac02d0226899725297dd508470b (patch)
treefc4e7d05d9c6f51eb97f3e8abbcab2b226330b94 /Lib/http
parentad28c7f9dad791567afa0624acfb3ba430851965 (diff)
downloadcpython-git-0832af6628ca5ac02d0226899725297dd508470b.tar.gz
Issue #16717: get rid of socket.error, replace with OSError
Diffstat (limited to 'Lib/http')
-rw-r--r--Lib/http/client.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/http/client.py b/Lib/http/client.py
index 6a4496fb49..5e5b3a382e 100644
--- a/Lib/http/client.py
+++ b/Lib/http/client.py
@@ -791,8 +791,8 @@ class HTTPConnection:
if code != 200:
self.close()
- raise socket.error("Tunnel connection failed: %d %s" % (code,
- message.strip()))
+ raise OSError("Tunnel connection failed: %d %s" % (code,
+ message.strip()))
while True:
line = response.fp.readline(_MAXLINE + 1)
if len(line) > _MAXLINE: