commit | 2ad2569c721c6179667a16d1a6f2df4f93606636 | [log] [tgz] |
---|---|---|
author | Martin v. Löwis <martin@v.loewis.de> | Tue Jul 31 08:40:21 2001 +0000 |
committer | Martin v. Löwis <martin@v.loewis.de> | Tue Jul 31 08:40:21 2001 +0000 |
tree | 93e1f4c5d1754aae38a36105bc1e051025bb65ac | |
parent | 7d9ed726fb6ec15dbfb8e922d35aa8816cbd0b0c [diff] [blame] |
Initialize msg to avoid unbound locals.
diff --git a/Lib/poplib.py b/Lib/poplib.py index 592f7df..98b81ce 100644 --- a/Lib/poplib.py +++ b/Lib/poplib.py
@@ -75,6 +75,7 @@ def __init__(self, host, port = POP3_PORT): self.host = host self.port = port + msg = "getaddrinfo returns an empty list" for res in socket.getaddrinfo(self.host, self.port, 0, socket.SOCK_STREAM): af, socktype, proto, canonname, sa = res try: