diff cmd2.py @ 292:23cf05c6276c

time to work on parsing refactor
author catherine@bothari
date Thu, 21 Jan 2010 19:59:28 -0500
parents dfdbd93a2fae
children bbc339f3ddeb
line wrap: on
line diff
--- 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: