summaryrefslogtreecommitdiff
path: root/Lib/telnetlib.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2002-06-02 03:04:52 +0000
committerRaymond Hettinger <python@rcn.com>2002-06-02 03:04:52 +0000
commit8e43e185994c12535978ad2204e2da2019ae311c (patch)
tree3408a14e3dad6b2f254db2f12f7b56745b07d2c2 /Lib/telnetlib.py
parent2c2c5dff0241755fee977819319bec85f729d5be (diff)
downloadcpython-8e43e185994c12535978ad2204e2da2019ae311c.tar.gz
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 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):