summaryrefslogtreecommitdiff
path: root/cmd2/cmd2.py
diff options
context:
space:
mode:
authorEric Lin <anselor@gmail.com>2020-07-24 12:21:43 -0400
committeranselor <anselor@gmail.com>2020-08-04 13:38:08 -0400
commit06cee9126839c465a356f8b44a5f008853eb8cad (patch)
tree88de1a9f07f20fb6a7e1a8f77b1c48fb41382d19 /cmd2/cmd2.py
parent787a31931ed4c4a18ae66a570d396b12b2b7b525 (diff)
downloadcmd2-git-06cee9126839c465a356f8b44a5f008853eb8cad.tar.gz
updated imports
Added additional documentation
Diffstat (limited to 'cmd2/cmd2.py')
-rw-r--r--cmd2/cmd2.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py
index affd395f..ca60a461 100644
--- a/cmd2/cmd2.py
+++ b/cmd2/cmd2.py
@@ -37,7 +37,6 @@ import pickle
import re
import sys
import threading
-import types
from code import InteractiveConsole
from collections import namedtuple
from contextlib import redirect_stdout
@@ -425,8 +424,8 @@ class Cmd(cmd.Cmd):
cmdset.on_register(self)
methods = inspect.getmembers(
cmdset,
- predicate=lambda meth: (inspect.ismethod(meth) or isinstance(meth, Callable)) and
- meth.__name__.startswith(COMMAND_FUNC_PREFIX))
+ predicate=lambda meth: (inspect.ismethod(meth) or isinstance(meth, Callable))
+ and meth.__name__.startswith(COMMAND_FUNC_PREFIX))
installed_attributes = []
try: