# HG changeset patch # User devlinjs@FA7CZA6N1254998.wrightpatterson.afmc.ds.af.mil # Date 1198080745 18000 # Node ID d0f0b3e0b89bc00db9d6934c82192bea40bb385a # Parent 25e908abf199bd7d840682707673375ff28cf150 multiline into cmd2 diff -r 25e908abf199 -r d0f0b3e0b89b cmd2.py --- 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] == ';')