From 10ff706e2788a7c7ef9f8ea0108a5ede625fedad Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Sun, 2 Jun 2002 03:04:52 +0000 Subject: Replaced boolean tests with is None. --- Lib/telnetlib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/telnetlib.py') diff --git a/Lib/telnetlib.py b/Lib/telnetlib.py index 656e97b7bb..4c806db22e 100644 --- a/Lib/telnetlib.py +++ b/Lib/telnetlib.py @@ -186,7 +186,7 @@ class Telnet: self.cookedq = '' self.eof = 0 self.option_callback = None - if host: + if host is not None: self.open(host, port) def open(self, host, port=0): -- cgit v1.2.1