diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2001-07-26 13:37:33 +0000 |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2001-07-26 13:37:33 +0000 |
commit | 4eb5940a4d350d250ab4af08a8b5b6e553e1814d (patch) | |
tree | b3d063c4d166a00f994bf64a80921553b15f1740 /Lib/poplib.py | |
parent | 2e441f7836134c475e35eea4a005f19699703a9b (diff) | |
download | cpython-git-4eb5940a4d350d250ab4af08a8b5b6e553e1814d.tar.gz |
Untabify IPv6 changes.
Diffstat (limited to 'Lib/poplib.py')
-rw-r--r-- | Lib/poplib.py | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/Lib/poplib.py b/Lib/poplib.py index c6c432dcf3..592f7dfa90 100644 --- a/Lib/poplib.py +++ b/Lib/poplib.py @@ -73,23 +73,23 @@ class POP3: def __init__(self, host, port = POP3_PORT): - self.host = host - self.port = port - for res in socket.getaddrinfo(self.host, self.port, 0, socket.SOCK_STREAM): - af, socktype, proto, canonname, sa = res - try: - self.sock = socket.socket(af, socktype, proto) - self.sock.connect(sa) - except socket.error, msg: - self.sock.close() - self.sock = None - continue - break - if not self.sock: - raise socket.error, msg - self.file = self.sock.makefile('rb') - self._debugging = 0 - self.welcome = self._getresp() + self.host = host + self.port = port + for res in socket.getaddrinfo(self.host, self.port, 0, socket.SOCK_STREAM): + af, socktype, proto, canonname, sa = res + try: + self.sock = socket.socket(af, socktype, proto) + self.sock.connect(sa) + except socket.error, msg: + self.sock.close() + self.sock = None + continue + break + if not self.sock: + raise socket.error, msg + self.file = self.sock.makefile('rb') + self._debugging = 0 + self.welcome = self._getresp() def _putline(self, line): |