1. Victor Stinner
  2. hachoir


haypo  committed 18deb54

Fix FieldSet: parent class have to be BasicFieldSet, not GenericFieldSet

  • Participants
  • Parent commits 606bd45
  • Branches default

Comments (0)

Files changed (1)

File hachoir-core/hachoir_core/field/field_set.py

View file
  • Ignore whitespace
-from hachoir_core.field import GenericFieldSet
+from hachoir_core.field import BasicFieldSet, GenericFieldSet
 class FieldSet(GenericFieldSet):
     def __init__(self, parent, name, *args, **kw):
-        assert issubclass(parent.__class__, GenericFieldSet)
+        assert issubclass(parent.__class__, BasicFieldSet)
         GenericFieldSet.__init__(self, parent, name, parent.stream, *args, **kw)