Commits

Anonymous committed 69e7ec3

StaticFieldSet: fix Python 2.6 warning

object.__new__() takes one only argument: the class.

  • Participants
  • Parent commits a2957aa

Comments (0)

Files changed (2)

File hachoir-core/ChangeLog

  * Fix initLocale(): return charset even if config.unicode_stdout is False
  * HachoirError: replace "message" attribute by "text" to fix Python 2.6
    compatibility (message attribute is deprecated)
+ * StaticFieldSet: fix Python 2.6 warning, object.__new__() takes one only
+   argument (the class).
 
 hachoir-core 1.2.1 (2008-10)
 ============================

File 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, *args, **kw)
+        return object.__new__(cls)
 
     @staticmethod
     def _computeItemSize(item):