Skip to content
Snippets Groups Projects
Commit 643d2a0e authored by Damien George's avatar Damien George
Browse files

tools/mpy-tool.py: Adjust use of super() to make it work with Python 2.

Fixes the regression introduced in ea3c80a5
parent fd523c53
No related branches found
No related tags found
No related merge requests found
......@@ -259,7 +259,7 @@ def extract_prelude(bytecode, ip):
class MPFunTable:
pass
class RawCode:
class RawCode(object):
# a set of all escaped names, to make sure they are unique
escaped_names = set()
......@@ -423,7 +423,7 @@ class RawCode:
class RawCodeBytecode(RawCode):
def __init__(self, bytecode, qstrs, objs, raw_codes):
super().__init__(MP_CODE_BYTECODE, bytecode, 0, qstrs, objs, raw_codes)
super(RawCodeBytecode, self).__init__(MP_CODE_BYTECODE, bytecode, 0, qstrs, objs, raw_codes)
def freeze(self, parent_name):
self.freeze_children(parent_name)
......@@ -462,7 +462,7 @@ class RawCodeBytecode(RawCode):
class RawCodeNative(RawCode):
def __init__(self, code_kind, fun_data, prelude_offset, prelude, qstr_links, qstrs, objs, raw_codes, type_sig):
super().__init__(code_kind, fun_data, prelude_offset, qstrs, objs, raw_codes)
super(RawCodeNative, self).__init__(code_kind, fun_data, prelude_offset, qstrs, objs, raw_codes)
self.prelude = prelude
self.qstr_links = qstr_links
self.type_sig = type_sig
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment