From 2ad2569c721c6179667a16d1a6f2df4f93606636 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Tue, 31 Jul 2001 08:40:21 +0000 Subject: Initialize msg to avoid unbound locals. --- Lib/telnetlib.py | 1 + 1 file changed, 1 insertion(+) (limited to 'Lib/telnetlib.py') diff --git a/Lib/telnetlib.py b/Lib/telnetlib.py index 5bac9e770c..3731be7dee 100644 --- a/Lib/telnetlib.py +++ b/Lib/telnetlib.py @@ -136,6 +136,7 @@ class Telnet: port = TELNET_PORT self.host = host self.port = port + msg = "getaddrinfo returns an empty list" for res in socket.getaddrinfo(host, port, 0, socket.SOCK_STREAM): af, socktype, proto, canonname, sa = res try: -- cgit v1.2.1