Mercurial > sqlpython
diff cmd2.py @ 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 |
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] == ';')