diff options
author | Damien George <damien.p.george@gmail.com> | 2019-04-08 11:21:18 +1000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2019-04-08 11:21:18 +1000 |
commit | 643d2a0e86bd151130508171804e5ab5b1a7bd4e (patch) | |
tree | 0dd80dc0c40e6a125bb2738e3b2c254b0b2f1fa1 /tools/mpy-tool.py | |
parent | fd523c53c37b36a9c343b1061d08e65e920dffa0 (diff) |
tools/mpy-tool.py: Adjust use of super() to make it work with Python 2.
Fixes the regression introduced in ea3c80a514c5dc4cc3a8349815eceec4fa1ac57f
Diffstat (limited to 'tools/mpy-tool.py')
-rwxr-xr-x | tools/mpy-tool.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/mpy-tool.py b/tools/mpy-tool.py index ff31a61bd..b8e5297aa 100755 --- a/tools/mpy-tool.py +++ b/tools/mpy-tool.py @@ -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 |