summaryrefslogtreecommitdiff
path: root/cmd2
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2020-08-27 13:48:45 -0400
committerKevin Van Brunt <kmvanbrunt@gmail.com>2020-08-27 13:48:45 -0400
commit6b5065e77715c6bab45f3a57eb5b97e3cbe4b86d (patch)
tree88db9608a44ca248a82f335236c6f32f8cf72d51 /cmd2
parente650fc3defd7ddeb32eeadeeddccda370539ce1d (diff)
downloadcmd2-git-6b5065e77715c6bab45f3a57eb5b97e3cbe4b86d.tar.gz
Removed Namespace.__statement__
Diffstat (limited to 'cmd2')
-rw-r--r--cmd2/constants.py1
-rw-r--r--cmd2/decorators.py3
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))