Fix non-SSL connection
fixes deb#432727
This commit is contained in:
parent
7ac4ca249e
commit
4e19af1513
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user