diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-01-04 08:26:33 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-01-04 08:26:33 +0400 |
commit | b59b7bba820d1fed0fc250283821058831985ce2 (patch) | |
tree | 2ea1c98ef71a995ea84a9895a398a23740521186 /netrender | |
parent | 279933b83f0eeb77a1a32c8ddd6d58b4e36c8342 (diff) |
use sets for checking against multiple values.
Diffstat (limited to 'netrender')
-rw-r--r-- | netrender/utils.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/netrender/utils.py b/netrender/utils.py index fa10386e..da5b744c 100644 --- a/netrender/utils.py +++ b/netrender/utils.py @@ -88,7 +88,7 @@ else: def __exit__(self, exc_type, exc_value, traceback): pass -if system in ('Windows', 'win32') and platform.version() >= '5': # Error mode is only available on Win2k or higher, that's version 5 +if system in {'Windows', 'win32'} and platform.version() >= '5': # Error mode is only available on Win2k or higher, that's version 5 import ctypes class NoErrorDialogContext: def __init__(self): @@ -189,9 +189,9 @@ def clientScan(report = None): def clientConnection(address, port, report = None, scan = True, timeout = 5): if address == "[default]": # calling operator from python is fucked, scene isn't in context -# if bpy: -# bpy.ops.render.netclientscan() -# else: +# if bpy: +# bpy.ops.render.netclientscan() +# else: if not scan: return None |