summaryrefslogtreecommitdiff
path: root/cmd2/cmd2.py
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2018-06-25 21:35:20 -0700
committerGitHub <noreply@github.com>2018-06-25 21:35:20 -0700
commit63aa28c284a9c854b950f4bf2dbe4aa438f21365 (patch)
treed32f008ca5804fa4766fcd9a344af4e2f5b2ed3b /cmd2/cmd2.py
parent40dc4554c7321c33ca490b1c45e130000229d274 (diff)
parenteb749b57c3ac8a3021fdd2fccc79fdfb18fca235 (diff)
downloadcmd2-git-63aa28c284a9c854b950f4bf2dbe4aa438f21365.tar.gz
Merge pull request #451 from python-cmd2/command_result
Deprecated CmdResult helper class and promoted CommandResult
Diffstat (limited to 'cmd2/cmd2.py')
-rw-r--r--cmd2/cmd2.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py
index f3b3038a..dade920a 100644
--- a/cmd2/cmd2.py
+++ b/cmd2/cmd2.py
@@ -3218,7 +3218,7 @@ class Statekeeper(object):
class CmdResult(utils.namedtuple_with_two_defaults('CmdResult', ['out', 'err', 'war'])):
- """Derive a class to store results from a named tuple so we can tweak dunder methods for convenience.
+ """DEPRECATED: Derive a class to store results from a named tuple so we can tweak dunder methods for convenience.
This is provided as a convenience and an example for one possible way for end users to store results in
the self._last_result attribute of cmd2.Cmd class instances. See the "python_scripting.py" example for how it can