Opens an interactive console when using the py command with no argument
This commit is contained in:
parent
febe08c885
commit
45646dccdf
2 changed files with 73 additions and 16 deletions
|
|
@ -1263,7 +1263,7 @@ class CmdGetInput(Command):
|
|||
prompt = caller.ndb._getinput._prompt
|
||||
args = caller.ndb._getinput._args
|
||||
kwargs = caller.ndb._getinput._kwargs
|
||||
result = self.raw_string.strip() # we strip the ending line break caused by sending
|
||||
result = self.raw_string.rstrip() # we strip the ending line break caused by sending
|
||||
|
||||
ok = not callback(caller, prompt, result, *args, **kwargs)
|
||||
if ok:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue