summaryrefslogtreecommitdiff
path: root/asciifarm/common/utils.py
diff options
context:
space:
mode:
authorrakiru <rabbitkillrun@googlemail.com>2018-01-11 19:19:58 +0000
committerrakiru <rabbitkillrun@googlemail.com>2018-01-11 19:19:58 +0000
commit6f0e48eac4f20894c802c93ac75cfa4693fbaa36 (patch)
tree9c32ae6716393d3aa7ccbb14a41494efe34d2399 /asciifarm/common/utils.py
parente0164e21209cec0ec24e9d25eee90711bca78947 (diff)
Replace None equality checks with identity checks
Both work, but the identity check is the more correct/idiomatic approach (and also ever-so-slightly more efficient).
Diffstat (limited to 'asciifarm/common/utils.py')
-rw-r--r--asciifarm/common/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/asciifarm/common/utils.py b/asciifarm/common/utils.py
index cdc8dd5..95ac32b 100644
--- a/asciifarm/common/utils.py
+++ b/asciifarm/common/utils.py
@@ -27,7 +27,7 @@ def concat(arr):
def writeFileSafe(filename, data, tempname=None):
- if tempname == None:
+ if tempname is None:
tempname = filename + ".tempfile"
with open(tempname, 'w') as f:
f.write(data)