summaryrefslogtreecommitdiff
path: root/examples/arg_print.py
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2018-04-15 14:26:29 -0700
committerTodd Leonhardt <todd.leonhardt@gmail.com>2018-04-15 14:26:29 -0700
commit60dddb03d05ccf4088242a524e624f61782dd40f (patch)
tree816eb6176ea40bf9d7c6f0d15715fe0a4b813cda /examples/arg_print.py
parent40eb6f6c9428a5a3a54cebef34da7dae173dd074 (diff)
downloadcmd2-git-60dddb03d05ccf4088242a524e624f61782dd40f.tar.gz
Started removing dependency on six
Removed all dependency on six other than for six.moves.input Also: - Started removing code branches which were for Python 2 support
Diffstat (limited to 'examples/arg_print.py')
-rwxr-xr-xexamples/arg_print.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/arg_print.py b/examples/arg_print.py
index 3083c0d7..18fa483f 100755
--- a/examples/arg_print.py
+++ b/examples/arg_print.py
@@ -28,7 +28,7 @@ class ArgumentAndOptionPrinter(cmd2.Cmd):
self.shortcuts.update({'$': 'aprint', '%': 'oprint'})
# Make sure to call this super class __init__ *after* setting commentGrammars and/or updating shortcuts
- cmd2.Cmd.__init__(self)
+ super().__init__()
# NOTE: It is critical that the super class __init__ method be called AFTER updating certain parameters which
# are not settable at runtime. This includes the commentGrammars, shortcuts, multilineCommands, etc.