summaryrefslogtreecommitdiff
path: root/tests/test_transcript.py
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2017-02-05 19:40:05 -0500
committerTodd Leonhardt <todd.leonhardt@gmail.com>2017-02-05 19:40:05 -0500
commit65959e43b5c81443058d3f79225163bc7d2814e5 (patch)
tree8705b481e828a6bf85bead5fd840c7a5d053f84c /tests/test_transcript.py
parent208a2004a55c232134f5b70d81fe8e638beddb85 (diff)
downloadcmd2-git-65959e43b5c81443058d3f79225163bc7d2814e5.tar.gz
Use older form of invoking super class ctor for Py2/3 compatibility.
Diffstat (limited to 'tests/test_transcript.py')
-rw-r--r--tests/test_transcript.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_transcript.py b/tests/test_transcript.py
index 9f6d8943..aeadae4e 100644
--- a/tests/test_transcript.py
+++ b/tests/test_transcript.py
@@ -25,7 +25,8 @@ class CmdLineApp(Cmd):
redirector = '->'
def __init__(self, *args, **kwargs):
- super(CmdLineApp, self).__init__(*args, **kwargs)
+ # Need to use this older form of invoking super class constructor to support Python 2.x and Python 3.x
+ Cmd.__init__(self, *args, **kwargs)
self.settable.append('maxrepeats Max number of `--repeat`s allowed')
opts = [make_option('-p', '--piglatin', action="store_true", help="atinLay"),