Skip to content

Commit

Permalink
Use older form of invoking super class ctor for Py2/3 compatibility.
Browse files Browse the repository at this point in the history
  • Loading branch information
tleonhardt committed Feb 6, 2017
1 parent 208a200 commit 65959e4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_transcript.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down

0 comments on commit 65959e4

Please sign in to comment.