Commits

Anonymous committed b94e407

core/field/static_field_set: pass arguments to object.__new__

Comments (0)

Files changed (1)

hachoir-core/hachoir_core/field/static_field_set.py

         if cls._class is not cls.__name__:
             cls._class = cls.__name__
             cls.static_size = cls._computeStaticSize()
-        return object.__new__(cls)
+        return object.__new__(cls, *args, **kw)
 
     @staticmethod
     def _computeItemSize(item):