[Bf-extensions-cvs] [23108a8] master: Remove redundant subclassing of 'object'
Campbell Barton
noreply at git.blender.org
Wed Aug 5 13:39:40 CEST 2015
Commit: 23108a80d791c783f04636acf122806cab0d655f
Author: Campbell Barton
Date: Wed Aug 5 21:32:47 2015 +1000
Branches: master
https://developer.blender.org/rBA23108a80d791c783f04636acf122806cab0d655f
Remove redundant subclassing of 'object'
===================================================================
M io_anim_bvh/export_bvh.py
M io_anim_bvh/import_bvh.py
===================================================================
diff --git a/io_anim_bvh/export_bvh.py b/io_anim_bvh/export_bvh.py
index 4d7f0b0..ed80ed5 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 50ae4bd..08f7cb5 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
More information about the Bf-extensions-cvs
mailing list