diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-09-18 11:45:31 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-09-18 11:45:31 +0400 |
commit | 90f75b8ce034068f0f8192e32d4b9a6d9261393f (patch) | |
tree | 9d56098c6816a02f4396273fd1927b1b234a41ba /doc/python_api/examples | |
parent | cf0ce0afc7b79cc42fbf083da0e7deacf54a836f (diff) |
Cleanup: use static sets where possible
Diffstat (limited to 'doc/python_api/examples')
-rw-r--r-- | doc/python_api/examples/bpy.types.Operator.5.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/python_api/examples/bpy.types.Operator.5.py b/doc/python_api/examples/bpy.types.Operator.5.py index 4a0abcb62c3..78030c7d7c4 100644 --- a/doc/python_api/examples/bpy.types.Operator.5.py +++ b/doc/python_api/examples/bpy.types.Operator.5.py @@ -39,7 +39,7 @@ class ModalOperator(bpy.types.Operator): self.execute(context) elif event.type == 'LEFTMOUSE': # Confirm return {'FINISHED'} - elif event.type in ('RIGHTMOUSE', 'ESC'): # Cancel + elif event.type in {'RIGHTMOUSE', 'ESC'}: # Cancel context.object.location.x = self.init_loc_x return {'CANCELLED'} |