diff options
author | Raymond Hettinger <python@rcn.com> | 2002-06-02 03:04:52 +0000 |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2002-06-02 03:04:52 +0000 |
commit | 8e43e185994c12535978ad2204e2da2019ae311c (patch) | |
tree | 3408a14e3dad6b2f254db2f12f7b56745b07d2c2 /Lib/telnetlib.py | |
parent | 2c2c5dff0241755fee977819319bec85f729d5be (diff) | |
download | cpython-8e43e185994c12535978ad2204e2da2019ae311c.tar.gz |
Replaced boolean tests with is None.
Diffstat (limited to 'Lib/telnetlib.py')
-rw-r--r-- | Lib/telnetlib.py | 2 |
1 files changed, 1 insertions, 1 deletions
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): |