Skip to content

Commit

Permalink
Python 2.x Compatibility Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SE2Dev committed Jan 6, 2018
1 parent 1627e70 commit 1eaf261
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions xanim.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
Expand Down
4 changes: 2 additions & 2 deletions xmodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
Expand Down

0 comments on commit 1eaf261

Please sign in to comment.