Mercurial > python-cmd2
diff cmd2.py @ 197:770c77152051
clean out debugging comment
author | catherine@dellzilla |
---|---|
date | Wed, 25 Feb 2009 14:07:45 -0500 |
parents | 455ebe415d5e |
children | 12c2d23caf19 |
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')