diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-08-05 14:32:47 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-08-05 14:34:55 +0300 |
commit | 23108a80d791c783f04636acf122806cab0d655f (patch) | |
tree | 2b8344039e19686d21f8ea70c743eed23160c26f | |
parent | 39b47b750841094b42f47fac862f464e992616d6 (diff) |
Remove redundant subclassing of 'object'
-rw-r--r-- | io_anim_bvh/export_bvh.py | 2 | ||||
-rw-r--r-- | io_anim_bvh/import_bvh.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/io_anim_bvh/export_bvh.py b/io_anim_bvh/export_bvh.py index 4d7f0b09..ed80ed59 100644 --- a/io_anim_bvh/export_bvh.py +++ b/io_anim_bvh/export_bvh.py @@ -147,7 +147,7 @@ def write_armature(context, # redefine bones as sorted by serialized_names # so we can write motion - class DecoratedBone(object): + class DecoratedBone: __slots__ = ( "name", # bone name, used as key in many places "parent", # decorated bone parent, set in a later loop diff --git a/io_anim_bvh/import_bvh.py b/io_anim_bvh/import_bvh.py index 50ae4bd7..08f7cb5b 100644 --- a/io_anim_bvh/import_bvh.py +++ b/io_anim_bvh/import_bvh.py @@ -26,7 +26,7 @@ import bpy from mathutils import Vector, Euler, Matrix -class BVH_Node(object): +class BVH_Node: __slots__ = ( 'name', # bvh joint name 'parent', # BVH_Node type or None for no parent |