mirror of
https://github.com/python/cpython.git
synced 2025-11-24 20:30:18 +00:00
Replaced boolean tests with is None.
This commit is contained in:
parent
f13eb55d59
commit
10ff706e27
5 changed files with 14 additions and 14 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue