summaryrefslogtreecommitdiffstats
path: root/Lib/telnetlib.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2002-06-02 03:04:52 (GMT)
committerRaymond Hettinger <python@rcn.com>2002-06-02 03:04:52 (GMT)
commit10ff706e2788a7c7ef9f8ea0108a5ede625fedad (patch)
treed2c08c7f262865884912dc04dd05b36656646851 /Lib/telnetlib.py
parentf13eb55d59d80907c9f86574ddd23bce2cb41ff3 (diff)
downloadcpython-10ff706e2788a7c7ef9f8ea0108a5ede625fedad.zip
cpython-10ff706e2788a7c7ef9f8ea0108a5ede625fedad.tar.gz
cpython-10ff706e2788a7c7ef9f8ea0108a5ede625fedad.tar.bz2
Replaced boolean tests with is None.
Diffstat (limited to 'Lib/telnetlib.py')
-rw-r--r--Lib/telnetlib.py2
1 files changed, 1 insertions, 1 deletions
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 @@ 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):