Mercurial > sqlpython
changeset 18:d0f0b3e0b89b
multiline into cmd2
author | devlinjs@FA7CZA6N1254998.wrightpatterson.afmc.ds.af.mil |
---|---|
date | Wed, 19 Dec 2007 11:12:25 -0500 |
parents | 25e908abf199 |
children | 25f22e742a68 |
files | cmd2.py |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/cmd2.py Wed Dec 19 11:11:24 2007 -0500 +++ b/cmd2.py Wed Dec 19 11:12:25 2007 -0500 @@ -88,6 +88,7 @@ def statementHasEnded(self, lines): """This version lets statements end with ; or with a blank line. Override for your own needs.""" + print '>%s<' % (lines.splitlines()[-1]) if not lines.splitlines()[-1].strip(): return True return (lines.strip()[-1] == ';')