diff options
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)) |
