# HG changeset patch # User catherine@dellzilla # Date 1225912584 18000 # Node ID 197a312f2656a8f4f801189aef962a7d1c2e8745 # Parent be7c2f2874a9c3da7cd20fb1b5ba6292083977ac push to get to v 126 diff -r be7c2f2874a9 -r 197a312f2656 cmd2.py --- a/cmd2.py Wed Nov 05 14:03:36 2008 -0500 +++ b/cmd2.py Wed Nov 05 14:16:24 2008 -0500 @@ -19,13 +19,14 @@ - Catherine Devlin, Jan 03 2008 - catherinedevlin.blogspot.com +mercurial repository at http://www.assembla.com/wiki/show/python-cmd2 CHANGES: As of 0.3.0, options should be specified as `optparse` options. See README.txt. flagReader.py options are still supported for backward compatibility """ import cmd, re, os, sys, optparse, subprocess, tempfile, pyparsing, doctest, unittest from optparse import make_option -__version__ = '0.4.1' +__version__ = '0.4.2' class OptionParser(optparse.OptionParser): def exit(self, status=0, msg=None): @@ -774,6 +775,7 @@ line = line.rstrip() if line.startswith(bareprompt): line = line.replace(bareprompt, '', 1) + lines.append(line) return '\n'.join(lines).strip() def tearDown(self): if self.CmdApp: diff -r be7c2f2874a9 -r 197a312f2656 setup.py --- a/setup.py Wed Nov 05 14:03:36 2008 -0500 +++ b/setup.py Wed Nov 05 14:16:24 2008 -0500 @@ -3,7 +3,7 @@ setup( name="cmd2", - version="0.4.1", + version="0.4.2", py_modules=["cmd2",], # metadata for upload to PyPI