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...
This commit is contained in:
Guido van Rossum 2000-03-28 21:45:46 +00:00
parent 1916b35f58
commit 93a7c0fe6b
7 changed files with 9 additions and 9 deletions

View file

@ -213,7 +213,7 @@ class SMTP:
if not port: port = SMTP_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))
(code,msg)=self.getreply()
if self.debuglevel >0 : print "connect:", msg
return (code,msg)