Mercurial > python-cmd2
diff cmd2.py @ 274:540315f06a17
must use unparsed string for py
author | catherine@cordelia |
---|---|
date | Mon, 04 May 2009 11:42:06 -0400 |
parents | fd5197498667 |
children | f62e9fbb3f90 |
line wrap: on
line diff
--- a/cmd2.py Wed Apr 29 22:35:24 2009 -0400 +++ b/cmd2.py Mon May 04 11:42:06 2009 -0400 @@ -813,6 +813,7 @@ End with `Ctrl-D` (Unix) / `Ctrl-Z` (Windows), `quit()`, 'exit()`. Non-python commands can be issued with `cmd("your command")`. ''' + arg = arg.parsed.raw[2:].strip() if arg.strip(): interp = InteractiveInterpreter(locals=self.pystate) interp.runcode(arg)