commit | 10ff706e2788a7c7ef9f8ea0108a5ede625fedad | [log] [tgz] |
---|---|---|
author | Raymond Hettinger <python@rcn.com> | Sun Jun 02 03:04:52 2002 +0000 |
committer | Raymond Hettinger <python@rcn.com> | Sun Jun 02 03:04:52 2002 +0000 |
tree | d2c08c7f262865884912dc04dd05b36656646851 | |
parent | f13eb55d59d80907c9f86574ddd23bce2cb41ff3 [diff] [blame] |
Replaced boolean tests with is None.
diff --git a/Lib/telnetlib.py b/Lib/telnetlib.py index 656e97b..4c806db 100644 --- a/Lib/telnetlib.py +++ b/Lib/telnetlib.py
@@ -186,7 +186,7 @@ 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):