use is rather then == when comparing against None.

This commit is contained in:
2010-09-18 10:43:32 +00:00
parent 6963574a55
commit 868fdd80a2
22 changed files with 41 additions and 42 deletions

View File

@@ -124,7 +124,7 @@ class MRenderJob(netrender.model.RenderJob):
if self.status not in {JOB_PAUSED, JOB_QUEUED}:
return
if status == None:
if status is None:
self.status = JOB_PAUSED if self.status == JOB_QUEUED else JOB_QUEUED
elif status:
self.status = JOB_QUEUED