From 0e2fbe6da195f07ed1f56fcb29b357a4e155253f Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 25 Aug 2012 11:55:26 +0000 Subject: use sets when checking against multiple types --- space_view3d_copy_attributes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'space_view3d_copy_attributes.py') diff --git a/space_view3d_copy_attributes.py b/space_view3d_copy_attributes.py index 4f090716..ddfcd443 100644 --- a/space_view3d_copy_attributes.py +++ b/space_view3d_copy_attributes.py @@ -691,7 +691,7 @@ class MESH_OT_CopyFaceSettings(bpy.types.Operator): def execute(self, context): mode = getattr(self, 'mode', '') - if not mode in ('MAT', 'VCOL', 'IMAGE', 'UV'): + if not mode in {'MAT', 'VCOL', 'IMAGE', 'UV'}: self.report({'ERROR'}, "No mode specified or invalid mode.") return self._end(context, {'CANCELLED'}) layername = getattr(self, 'layer', '') -- cgit v1.2.3