Style: use frozen sets

This commit is contained in:
Campbell Barton 2013-12-08 22:53:55 +11:00
parent 28d5f2ab60
commit 05e96ba160
1 changed files with 1 additions and 1 deletions

View File

@ -1250,7 +1250,7 @@ def draw_device(self, context):
layout.prop(cscene, "feature_set")
device_type = context.user_preferences.system.compute_device_type
if device_type in ('CUDA', 'OPENCL', 'NETWORK'):
if device_type in {'CUDA', 'OPENCL', 'NETWORK'}:
layout.prop(cscene, "device")
if engine.with_osl() and (cscene.device == 'CPU' or device_type == 'NONE'):