Skip to content

Commit 1f07147

Browse files
NodeCommandError: Fix super() calls for Python 2.7
1 parent 3ba825b commit 1f07147

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

nodely/error.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@ class NodeCommandError(CalledProcessError):
99
"""A Node.js command returned non-zero exit code"""
1010

1111
def __init__(self, returncode, cmd, cwd):
12-
super().__init__(returncode=returncode, cmd=cmd)
12+
super(NodeCommandError, self).__init__(
13+
returncode=returncode, cmd=cmd)
1314
self.cwd = cwd
1415
self.args += (cwd, )
1516

1617
def __str__(self):
1718
return "{} in working directory {!r}".format(
18-
super().__str__(), self.cwd)
19+
super(NodeCommandError, self).__str__(), self.cwd)

0 commit comments

Comments
 (0)