From 1eaf261ec7e041595c8afa98f4623b6160a1776a Mon Sep 17 00:00:00 2001 From: SE2Dev Date: Sat, 6 Jan 2018 17:59:40 -0500 Subject: [PATCH] Python 2.x Compatibility Fix --- xanim.py | 4 ++-- xmodel.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/xanim.py b/xanim.py index c9f1b2a..c026291 100644 --- a/xanim.py +++ b/xanim.py @@ -212,10 +212,10 @@ def _load_parts_(self, file, part_count): class Anim(XBinIO, object): - __slots__ = ('version', 'framerate', 'parts', 'frames', 'notes') + __slots__ = ('framerate', 'parts', 'frames', 'notes') def __init__(self): - super().__init__() + super(XBinIO, self).__init__() self.framerate = None self.parts = [] self.frames = [] diff --git a/xmodel.py b/xmodel.py index 2a58e7b..a8f87e6 100644 --- a/xmodel.py +++ b/xmodel.py @@ -377,11 +377,11 @@ def __load_faces__(self, file, version): class Model(XBinIO, object): - __slots__ = ('version', 'name', 'bones', 'meshes', 'materials') + __slots__ = ('name', 'bones', 'meshes', 'materials') supported_versions = [5, 6, 7] def __init__(self, name='$model'): - super().__init__() + super(XBinIO, self).__init__() self.name = name self.bones = []