summaryrefslogtreecommitdiffstats
path: root/Lib/httplib.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/httplib.py')
-rw-r--r--Lib/httplib.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/httplib.py b/Lib/httplib.py
index a43adde..8c8084e 100644
--- a/Lib/httplib.py
+++ b/Lib/httplib.py
@@ -109,7 +109,7 @@ class HTTP:
if not port: port = HTTP_PORT
self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
if self.debuglevel > 0: print 'connect:', (host, port)
- self.sock.connect(host, port)
+ self.sock.connect((host, port))
def send(self, str):
"""Send `str' to the server."""
@@ -209,7 +209,7 @@ if hasattr(socket, "ssl"):
if not port: port = HTTPS_PORT
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
if self.debuglevel > 0: print 'connect:', (host, port)
- sock.connect(host, port)
+ sock.connect((host, port))
ssl = socket.ssl(sock, self.key_file, self.cert_file)
self.sock = FakeSocket(sock, ssl)