Don't forget to call super's struct_format.

This commit is contained in:
Mike Auty
2016-12-15 09:06:05 +00:00
parent de58df2363
commit bf61357ed2
+1 -1
View File
@@ -249,7 +249,7 @@ class Enumeration(PrimitiveObject, int):
return cls._struct_type.__new__(cls, value)
def __init__(self, context, type_name, object_info, struct_format, subtype = None, choices = None):
super().__init__(context, type_name, object_info)
super().__init__(context, type_name, object_info, struct_format)
for k, v in self._check_type(choices, dict):
self._check_type(k, str)