diff options
author | kotfu <kotfu@kotfu.net> | 2018-06-21 15:09:31 -0600 |
---|---|---|
committer | kotfu <kotfu@kotfu.net> | 2018-06-21 15:09:31 -0600 |
commit | c9ea3a749f7febb6dfe0f36001457e3907524ee7 (patch) | |
tree | b3b7b3d1b5935665c82c6753f17d654e545570e0 /cmd2/cmd2.py | |
parent | 7298501357504312e137180c99c05a40f49eb48a (diff) | |
download | cmd2-git-c9ea3a749f7febb6dfe0f36001457e3907524ee7.tar.gz |
Use `data` instead of `params`
Diffstat (limited to 'cmd2/cmd2.py')
-rw-r--r-- | cmd2/cmd2.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py index c2e79b09..75814b14 100644 --- a/cmd2/cmd2.py +++ b/cmd2/cmd2.py @@ -1691,17 +1691,17 @@ class Cmd(cmd.Cmd): try: statement = self._complete_statement(line) # call the postparsing hooks - params = plugin.PostparsingData(False, statement) + data = plugin.PostparsingData(False, statement) for func in self._postparsing_hooks: - params = func(params) - if params.stop: + data = func(data) + if data.stop: break # postparsing_precmd is deprecated - if not params.stop: - (params.stop, params.statement) = self.postparsing_precmd(params.statement) + if not data.stop: + (data.stop, data.statement) = self.postparsing_precmd(data.statement) # unpack the data object - statement = params.statement - stop = params.stop + statement = data.statement + stop = data.stop if stop: # we should not run the command, but # we need to run the finalization hooks |