diff options
author | kotfu <kotfu@kotfu.net> | 2018-04-23 21:13:33 -0600 |
---|---|---|
committer | kotfu <kotfu@kotfu.net> | 2018-04-23 21:13:33 -0600 |
commit | 4411d8d68c57e8cfca323b80369a8d3c5f11c9d4 (patch) | |
tree | b2294656bcd14c4a44b5bc272c5de31648aa56a6 /cmd2/cmd2.py | |
parent | 7f7adaf2fa211e877987aef075affe2a7082dbc5 (diff) | |
download | cmd2-git-4411d8d68c57e8cfca323b80369a8d3c5f11c9d4.tar.gz |
Multiline support mostly done
Diffstat (limited to 'cmd2/cmd2.py')
-rwxr-xr-x | cmd2/cmd2.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py index d9cbd2b0..8165f411 100755 --- a/cmd2/cmd2.py +++ b/cmd2/cmd2.py @@ -2181,7 +2181,7 @@ class Cmd(cmd.Cmd): # raise EmptyStatement() # statement = self.parser_manager.parsed(line) # deleteme statement = self.command_parser.parseString(line) - while statement.multilineCommand and (statement.terminator == ''): + while statement.multilineCommand and not statement.terminator: line = '%s\n%s' % (statement.raw, self.pseudo_raw_input(self.continuation_prompt)) statement = self.command_parser.parseString(line) |