[PATCH 06/11] nmweb: (pylint) put if clause on separate line from predicate

Subject: [PATCH 06/11] nmweb: (pylint) put if clause on separate line from predicate

Date: Sun, 4 Feb 2018 23:19:54 -0500

To: Notmuch Mail

Cc:

From: Daniel Kahn Gillmor


---
 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

_______________________________________________
notmuch mailing list
notmuch@notmuchmail.org
https://notmuchmail.org/mailman/listinfo/notmuch

Thread: