Fix up the Char type (struct.unpack returns a bytes, not a string).

This commit is contained in:
Mike Auty
2017-08-10 20:44:21 +01:00
parent 570a2d35be
commit c336a39695
+3 -2
View File
@@ -77,9 +77,10 @@ class Float(PrimitiveObject, float):
"""Primitive Object that handles double or floating point numbers"""
_struct_type = float
class Char(PrimitiveObject, str):
class Char(PrimitiveObject, bytes):
"""Primitive Object that handles characters"""
_struct_type = str
_struct_type = bytes
class Bytes(PrimitiveObject, bytes):