Mercurial > python-cmd2
changeset 197:770c77152051
clean out debugging comment
author | catherine@dellzilla |
---|---|
date | Wed, 25 Feb 2009 14:07:45 -0500 |
parents | f73cde93ce73 |
children | b90021703faf |
files | cmd2.py setup.py |
diffstat | 2 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/cmd2.py Wed Feb 25 14:05:47 2009 -0500 +++ b/cmd2.py Wed Feb 25 14:07:45 2009 -0500 @@ -27,7 +27,7 @@ import cmd, re, os, sys, optparse, subprocess, tempfile, pyparsing, doctest import unittest, string, datetime from optparse import make_option -__version__ = '0.4.5' +__version__ = '0.4.6' class OptionParser(optparse.OptionParser): def exit(self, status=0, msg=None): @@ -370,7 +370,6 @@ - terminator: ['\n', '\n'] - terminator: ['\n', '\n'] ''' - #outputParser = pyparsing.oneOf(['>>','>'])('output') outputParser = (pyparsing.Literal('>>') | (pyparsing.WordStart() + '>') | pyparsing.Regex('[^=]>'))('output') terminatorParser = pyparsing.Or([(hasattr(t, 'parseString') and t) or pyparsing.Literal(t) for t in self.terminators])('terminator')