fixed super() for python2

This commit is contained in:
Alexey Popravka 2014-03-24 15:42:16 +02:00
parent d850e56dd0
commit ee38505db5

View file

@ -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: