# HG changeset patch # User catherine@bothari # Date 1264121968 18000 # Node ID 23cf05c6276c0fb3bc4d9d29c58f2cdf411309d2 # Parent dfdbd93a2fae46a0601ae6f3dfe954e95c18130c time to work on parsing refactor diff -r dfdbd93a2fae -r 23cf05c6276c cmd2.py --- a/cmd2.py Fri Nov 06 22:09:57 2009 -0500 +++ b/cmd2.py Thu Jan 21 19:59:28 2010 -0500 @@ -628,6 +628,7 @@ if isinstance(raw, ParsedString): p = raw else: + # preparse is an overridable hook; default makes no changes raw = self.preparse(raw, **kwargs) s = self.inputParser.transformString(raw.lstrip()) for (shortcut, expansion) in self.shortcuts: @@ -725,7 +726,7 @@ self.stdout.write(get_paste_buffer()) try: try: - # "heart" of the command, replace's cmd's onecmd() + # "heart" of the command, replaces cmd's onecmd() self.lastcmd = statement.parsed.expanded funcname = self.func_named(statement.parsed.command) if not funcname: