Replaced boolean tests with is None.

This commit is contained in:
Raymond Hettinger 2002-06-02 03:04:52 +00:00
parent f13eb55d59
commit 10ff706e27
5 changed files with 14 additions and 14 deletions

View file

@ -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):