Opens an interactive console when using the py command with no argument

This commit is contained in:
Vincent Le Goff 2019-07-22 15:37:19 +02:00
parent febe08c885
commit 45646dccdf
2 changed files with 73 additions and 16 deletions

View file

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