Mercurial > sqlpython
comparison 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 |
comparison
equal
deleted
inserted
replaced
17:25e908abf199 | 18:d0f0b3e0b89b |
---|---|
86 # user input and users are slow. | 86 # user input and users are slow. |
87 | 87 |
88 def statementHasEnded(self, lines): | 88 def statementHasEnded(self, lines): |
89 """This version lets statements end with ; or with a blank line. | 89 """This version lets statements end with ; or with a blank line. |
90 Override for your own needs.""" | 90 Override for your own needs.""" |
91 print '>%s<' % (lines.splitlines()[-1]) | |
91 if not lines.splitlines()[-1].strip(): | 92 if not lines.splitlines()[-1].strip(): |
92 return True | 93 return True |
93 return (lines.strip()[-1] == ';') | 94 return (lines.strip()[-1] == ';') |
94 | 95 |
95 def do_history(self, arg): | 96 def do_history(self, arg): |