diff options
| author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2020-08-27 13:48:45 -0400 |
|---|---|---|
| committer | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2020-08-27 13:48:45 -0400 |
| commit | 6b5065e77715c6bab45f3a57eb5b97e3cbe4b86d (patch) | |
| tree | 88db9608a44ca248a82f335236c6f32f8cf72d51 /cmd2 | |
| parent | e650fc3defd7ddeb32eeadeeddccda370539ce1d (diff) | |
| download | cmd2-git-6b5065e77715c6bab45f3a57eb5b97e3cbe4b86d.tar.gz | |
Removed Namespace.__statement__
Diffstat (limited to 'cmd2')
| -rw-r--r-- | cmd2/constants.py | 1 | ||||
| -rw-r--r-- | cmd2/decorators.py | 3 |
2 files changed, 0 insertions, 4 deletions
diff --git a/cmd2/constants.py b/cmd2/constants.py index 037a7cab..8aac5857 100644 --- a/cmd2/constants.py +++ b/cmd2/constants.py @@ -56,4 +56,3 @@ PARSER_ATTR_COMMANDSET = 'command_set' # custom attributes added to argparse Namespaces NS_ATTR_SUBCMD_HANDLER = '__subcmd_handler__' -NS_ATTR_STATEMENT = '__statement__' diff --git a/cmd2/decorators.py b/cmd2/decorators.py index c2689102..d173334d 100644 --- a/cmd2/decorators.py +++ b/cmd2/decorators.py @@ -299,9 +299,6 @@ def with_argparser(parser: argparse.ArgumentParser, *, except SystemExit: raise Cmd2ArgparseError else: - # Add statement to Namespace as __statement__ (this is deprecated and will be removed in 2.0) - setattr(ns, constants.NS_ATTR_STATEMENT, statement) - # Add wrapped statement to Namespace as cmd2_statement setattr(ns, 'cmd2_statement', Cmd2AttributeWrapper(statement)) |
