updated usages of super to use python3 variation
This commit is contained in:
parent
6a0a9e7698
commit
68be311c7a
15 changed files with 33 additions and 40 deletions
|
@ -202,7 +202,7 @@ class CoreGrpcServer(core_pb2_grpc.CoreApiServicer):
|
|||
"""
|
||||
|
||||
def __init__(self, coreemu):
|
||||
super(CoreGrpcServer, self).__init__()
|
||||
super().__init__()
|
||||
self.coreemu = coreemu
|
||||
self.running = True
|
||||
self.server = None
|
||||
|
|
|
@ -94,12 +94,12 @@ class CoreTlvDataObj(CoreTlvData):
|
|||
"""
|
||||
Convenience method for packing custom object data.
|
||||
|
||||
:param obj: custom object to pack
|
||||
:param value: custom object to pack
|
||||
:return: length of data and the packed data itself
|
||||
:rtype: tuple
|
||||
"""
|
||||
value = cls.get_value(value)
|
||||
return super(CoreTlvDataObj, cls).pack(value)
|
||||
return super().pack(value)
|
||||
|
||||
@classmethod
|
||||
def unpack(cls, data):
|
||||
|
@ -109,7 +109,7 @@ class CoreTlvDataObj(CoreTlvData):
|
|||
:param data: data to unpack custom object from
|
||||
:return: unpacked custom object
|
||||
"""
|
||||
data = super(CoreTlvDataObj, cls).unpack(data)
|
||||
data = super().unpack(data)
|
||||
return cls.new_obj(data)
|
||||
|
||||
@staticmethod
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue