diff options
author | kotfu <kotfu@kotfu.net> | 2020-02-20 20:38:09 -0700 |
---|---|---|
committer | kotfu <kotfu@kotfu.net> | 2020-02-20 20:38:09 -0700 |
commit | 6b119fedafbbf655d244f8fcdc4563ec011c3ecf (patch) | |
tree | a37a3991c53d04acdd1c4696c6830e127471c712 /cmd2/utils.py | |
parent | f0c3cbffa35dfe26b8ac54ea1450ed50ba787c9a (diff) | |
download | cmd2-git-6b119fedafbbf655d244f8fcdc4563ec011c3ecf.tar.gz |
Fix merge error
Diffstat (limited to 'cmd2/utils.py')
-rw-r--r-- | cmd2/utils.py | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/cmd2/utils.py b/cmd2/utils.py index d02d8157..971a22ce 100644 --- a/cmd2/utils.py +++ b/cmd2/utils.py @@ -429,21 +429,6 @@ def get_exes_in_path(starts_with: str) -> List[str]: return list(exes_set) -def categorize(func: Union[Callable, Iterable[Callable]], category: str) -> None: - """Categorize a function. - - The help command output will group this function under the specified category heading - - :param func: function or list of functions to categorize - :param category: category to put it in - """ - if isinstance(func, Iterable): - for item in func: - setattr(item, constants.CMD_ATTR_HELP_CATEGORY, category) - else: - setattr(func, constants.CMD_ATTR_HELP_CATEGORY, category) - - class StdSim: """ Class to simulate behavior of sys.stdout or sys.stderr. |