From 65959e43b5c81443058d3f79225163bc7d2814e5 Mon Sep 17 00:00:00 2001 From: Todd Leonhardt Date: Sun, 5 Feb 2017 19:40:05 -0500 Subject: Use older form of invoking super class ctor for Py2/3 compatibility. --- tests/test_transcript.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/test_transcript.py') 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"), -- cgit v1.2.1