[PATCH 06/11] nmweb: (pylint) put if clause on separate line from predicate
Daniel Kahn Gillmor
dkg at fifthhorseman.net
Sun Feb 4 20:19:54 PST 2018
---
contrib/notmuch-web/nmweb.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/contrib/notmuch-web/nmweb.py b/contrib/notmuch-web/nmweb.py
index 6c687554..0217fce0 100755
--- a/contrib/notmuch-web/nmweb.py
+++ b/contrib/notmuch-web/nmweb.py
@@ -249,7 +249,8 @@ def link_to_cached_file(part, mid, counter):
data = part.get_payload(decode=True)
except:
data = part.get_payload(decode=False)
- if data: fp.write(data)
+ if data:
+ fp.write(data)
fp.close()
if 'Content-ID' in part:
cid = part['Content-ID']
--
2.15.1
More information about the notmuch
mailing list