Fredrik Lundh:

This fixes a bunch of socket.connect(host, post) calls.  Note that I
haven't tested all modules -- I don't have enough servers here...
diff --git a/Lib/imaplib.py b/Lib/imaplib.py
index 31893a5..921ee0c 100644
--- a/Lib/imaplib.py
+++ b/Lib/imaplib.py
@@ -191,7 +191,7 @@
 	def open(self, host, port):
 		"""Setup 'self.sock' and 'self.file'."""
 		self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
-		self.sock.connect(self.host, self.port)
+		self.sock.connect((self.host, self.port))
 		self.file = self.sock.makefile('r')