diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2018-05-27 22:07:08 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-27 22:07:08 -0400 |
commit | 76c29610672e30a12aae3d75adf34b085571fe9f (patch) | |
tree | 4c44834ce7befedb9b90bfea2d37f38797278899 /cmd2/cmd2.py | |
parent | 8f88f819fae7508066a81a8d961a7115f2ec4bed (diff) | |
parent | 12cc83b5051e0683e499e372cc66708cbcd3c835 (diff) | |
download | cmd2-git-76c29610672e30a12aae3d75adf34b085571fe9f.tar.gz |
Merge pull request #420 from python-cmd2/preparse
Fixed bug where preparse() wasn't called before parsing
Diffstat (limited to 'cmd2/cmd2.py')
-rw-r--r-- | cmd2/cmd2.py | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py index 04758ed7..ce19cda8 100644 --- a/cmd2/cmd2.py +++ b/cmd2/cmd2.py @@ -1620,15 +1620,6 @@ class Cmd(cmd.Cmd): return raw # noinspection PyMethodMayBeStatic - def postparse(self, statement: Statement) -> Statement: - """Hook that runs immediately after parsing the user input. - - :param statement: Statement object populated by parsing - :return: Statement - potentially modified Statement object - """ - return statement - - # noinspection PyMethodMayBeStatic def postparsing_precmd(self, statement: Statement) -> Tuple[bool, Statement]: """This runs after parsing the command-line, but before anything else; even before adding cmd to history. |