diff options
author | kotfu <kotfu@kotfu.net> | 2020-01-14 21:52:56 -0700 |
---|---|---|
committer | kotfu <kotfu@kotfu.net> | 2020-01-14 21:52:56 -0700 |
commit | e156d1b83a48206d1a1712d569262bf9d5663de1 (patch) | |
tree | e5f6ea943f224b6d636b748cdb27fe5bd34a8426 /cmd2/cmd2.py | |
parent | 591bd29cb4a3bcb9b1f40ffc1f30429c6501ebdb (diff) | |
download | cmd2-git-e156d1b83a48206d1a1712d569262bf9d5663de1.tar.gz |
Remove attribute documentation for #821
We will not try and have Sphnix extract attribute documentation from the source code, it will just live in the documentation.
Diffstat (limited to 'cmd2/cmd2.py')
-rw-r--r-- | cmd2/cmd2.py | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py index ec8d67b2..2ae65125 100644 --- a/cmd2/cmd2.py +++ b/cmd2/cmd2.py @@ -133,9 +133,6 @@ class Cmd(cmd.Cmd): " This command is for internal use and is not intended to be called from the\n" " command line.") - debug = False - """Set to True to display a full stack trace when exceptions occur""" - # Sorting keys for strings ALPHABETICAL_SORT_KEY = utils.norm_fold NATURAL_SORT_KEY = utils.natural_keys @@ -298,7 +295,6 @@ class Cmd(cmd.Cmd): # The error that prints when a non-existent command is run self.default_error = "{} is not a recognized command, alias, or macro" - """The error message displayed when a non-existent command is run.""" self.broken_pipe_warning = '' @@ -422,24 +418,6 @@ class Cmd(cmd.Cmd): self.perror('Invalid value: {} (valid values: {}, {}, {})'.format(new_val, ansi.STYLE_TERMINAL, ansi.STYLE_ALWAYS, ansi.STYLE_NEVER)) - @property - def broken_pipe_warning(self) -> str: - """Message to display if a BrokenPipeError is raised while writing output. - - The following methods catch BrokenPipeError exceptions and output this message: - - - :meth:`~cmd2.cmd2.Cmd.poutput()` - - :meth:`~cmd2.cmd2.Cmd.ppaged()` - - The default value is an empty string meaning the BrokenPipeError is - silently swallowed. - """ - return self.broken_pipe_error - - @broken_pipe_warning.setter - def broken_pipe_warning(self, new_val: str) -> None: - self.broken_pipe_error = new_val - def _completion_supported(self) -> bool: """Return whether tab completion is supported""" return self.use_rawinput and self.completekey and rl_type != RlType.NONE |