Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2017-03-19 04:47:06 +0300
committerCampbell Barton <ideasman42@gmail.com>2017-03-19 04:50:23 +0300
commit8c378c52c83757b9e78d5a98581bf240ed31a1ec (patch)
tree4a44a8e7fab77f9f812a8940713f14dceeec512c /netrender
parent57f376e9465c6b79ebd4409bc30e0b5930dd4140 (diff)
Cleanup: identity for None comparison
Diffstat (limited to 'netrender')
-rw-r--r--netrender/master.py2
-rw-r--r--netrender/slave.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/netrender/master.py b/netrender/master.py
index 456e436d..81e62dbb 100644
--- a/netrender/master.py
+++ b/netrender/master.py
@@ -39,7 +39,7 @@ class MRenderFile(netrender.model.RenderFile):
def updateStatus(self):
self.found = os.path.exists(self.filepath)
- if self.found and self.signature != None:
+ if self.found and self.signature is not None:
found_signature = hashFile(self.filepath)
self.found = self.signature == found_signature
if not self.found:
diff --git a/netrender/slave.py b/netrender/slave.py
index a5d97172..3bb1578a 100644
--- a/netrender/slave.py
+++ b/netrender/slave.py
@@ -69,7 +69,7 @@ def testFile(conn, job_id, slave_id, rfile, job_prefix, main_path=None):
found = os.path.exists(job_full_path)
- if found and rfile.signature != None:
+ if found and rfile.signature is not None:
found_signature = hashFile(job_full_path)
found = found_signature == rfile.signature