diff options
| author | jmdejong <jmdejong@users.noreply.github.com> | 2018-01-11 22:44:20 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-01-11 22:44:20 +0100 |
| commit | e15a7ee87517e47613473f0a3fcb7fc68f112849 (patch) | |
| tree | 1bb12831bf6d65a895004fcc229e9b7954048892 /asciifarm/common/utils.py | |
| parent | e0164e21209cec0ec24e9d25eee90711bca78947 (diff) | |
| parent | 7ba1804af2ec34094171127d6eada72a1d1e199f (diff) | |
Merge pull request #1 from rakiru/code-review
Code review
Diffstat (limited to 'asciifarm/common/utils.py')
| -rw-r--r-- | asciifarm/common/utils.py | 2 |
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) |
