From 3c23caa4c0b31b9908a43737369b715915a8fe62 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 21 Jul 2016 03:52:13 +1000 Subject: Cleanup: use identity for None comparisons --- rigify/rig_ui_template.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'rigify/rig_ui_template.py') diff --git a/rigify/rig_ui_template.py b/rigify/rig_ui_template.py index c37b9db6..717410da 100644 --- a/rigify/rig_ui_template.py +++ b/rigify/rig_ui_template.py @@ -386,7 +386,7 @@ class Rigify_Arm_FK2IK(bpy.types.Operator): @classmethod def poll(cls, context): - return (context.active_object != None and context.mode == 'POSE') + return (context.active_object is not None and context.mode == 'POSE') def execute(self, context): use_global_undo = context.user_preferences.edit.use_global_undo @@ -416,7 +416,7 @@ class Rigify_Arm_IK2FK(bpy.types.Operator): @classmethod def poll(cls, context): - return (context.active_object != None and context.mode == 'POSE') + return (context.active_object is not None and context.mode == 'POSE') def execute(self, context): use_global_undo = context.user_preferences.edit.use_global_undo @@ -447,7 +447,7 @@ class Rigify_Leg_FK2IK(bpy.types.Operator): @classmethod def poll(cls, context): - return (context.active_object != None and context.mode == 'POSE') + return (context.active_object is not None and context.mode == 'POSE') def execute(self, context): use_global_undo = context.user_preferences.edit.use_global_undo @@ -479,7 +479,7 @@ class Rigify_Leg_IK2FK(bpy.types.Operator): @classmethod def poll(cls, context): - return (context.active_object != None and context.mode == 'POSE') + return (context.active_object is not None and context.mode == 'POSE') def execute(self, context): use_global_undo = context.user_preferences.edit.use_global_undo -- cgit v1.2.3