Allows inputting of empty lines.
This commit is contained in:
parent
f9a1d764a4
commit
737441b7e6
1 changed files with 3 additions and 1 deletions
|
|
@ -196,7 +196,9 @@ class ServerSession(Session):
|
||||||
oob - this should hold a dictionary of oob command calls from
|
oob - this should hold a dictionary of oob command calls from
|
||||||
the oob-supporting protocol.
|
the oob-supporting protocol.
|
||||||
"""
|
"""
|
||||||
if text:
|
#explicitly check for None since text can be an empty string, which is
|
||||||
|
#also valid
|
||||||
|
if text is not None:
|
||||||
# this is treated as a command input
|
# this is treated as a command input
|
||||||
#text = to_unicode(escape_control_sequences(text), encoding=self.encoding)
|
#text = to_unicode(escape_control_sequences(text), encoding=self.encoding)
|
||||||
# handle the 'idle' command
|
# handle the 'idle' command
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue