|
|
@ -2909,8 +2909,8 @@ else:
|
|
|
|
if platform.python_implementation() == 'IronPython' and sys.version_info < (2, 7, 8):
|
|
|
|
if platform.python_implementation() == 'IronPython' and sys.version_info < (2, 7, 8):
|
|
|
|
class compat_Struct(struct.Struct):
|
|
|
|
class compat_Struct(struct.Struct):
|
|
|
|
def unpack(self, string):
|
|
|
|
def unpack(self, string):
|
|
|
|
if not isinstance(string, buffer):
|
|
|
|
if not isinstance(string, buffer): # noqa: F821
|
|
|
|
string = buffer(string)
|
|
|
|
string = buffer(string) # noqa: F821
|
|
|
|
return super(compat_Struct, self).unpack(string)
|
|
|
|
return super(compat_Struct, self).unpack(string)
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
compat_Struct = struct.Struct
|
|
|
|
compat_Struct = struct.Struct
|
|
|
|