mirror of
https://github.com/msgpack/msgpack-python.git
synced 2025-10-20 04:13:16 +00:00
fixed super() for python2
This commit is contained in:
parent
d850e56dd0
commit
ee38505db5
1 changed files with 2 additions and 1 deletions
|
@ -47,7 +47,8 @@ def test_unpacker_ext_hook():
|
||||||
class MyUnpacker(Unpacker):
|
class MyUnpacker(Unpacker):
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super().__init__(ext_hook=self._hook, encoding='utf-8')
|
super(MyUnpacker, self).__init__(ext_hook=self._hook,
|
||||||
|
encoding='utf-8')
|
||||||
|
|
||||||
def _hook(self, code, data):
|
def _hook(self, code, data):
|
||||||
if code == 1:
|
if code == 1:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue