Fix non-SSL connection

fixes deb#432727
This commit is contained in:
John Goerzen 2007-07-12 11:02:19 +01:00
parent 7ac4ca249e
commit 4e19af1513

View File

@ -113,7 +113,6 @@ def new_open(self, host = '', port = IMAP4_PORT):
self.port = port
res = socket.getaddrinfo(host, port, socket.AF_UNSPEC,
socket.SOCK_STREAM)
self.sock = socket.socket(af, socktype, proto)
# Try each address returned by getaddrinfo in turn until we
# manage to connect to one.