[PATCH 03/11] nmweb: (pylint) use spaces instead of tabs
Daniel Kahn Gillmor
dkg at fifthhorseman.net
Sun Feb 4 20:19:51 PST 2018
---
contrib/notmuch-web/nmweb.py | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/contrib/notmuch-web/nmweb.py b/contrib/notmuch-web/nmweb.py
index 1f6e0145..b56c6b12 100755
--- a/contrib/notmuch-web/nmweb.py
+++ b/contrib/notmuch-web/nmweb.py
@@ -47,7 +47,7 @@ class index:
tags = db.get_all_tags()
return template.render(tags=tags,
title="Notmuch webmail",
- prefix=prefix,
+ prefix=prefix,
sprefix=webprefix)
class search:
@@ -80,7 +80,7 @@ class search:
ts=ts,
title=terms,
prefix=prefix,
- sprefix=webprefix)
+ sprefix=webprefix)
def format_time_range(start,end):
if end-start < (60*60*24):
@@ -137,7 +137,7 @@ class show:
mid=mid,
title=m.get_header('Subject'),
prefix=prefix,
- sprefix=webprefix)
+ sprefix=webprefix)
def format_message(fn,mid):
msg = MaildirMessage(open(fn))
@@ -184,9 +184,9 @@ def format_message_walk(msg,mid):
decoded = decodeAnyway(unb64,part.get_content_charset('ascii'))
cid_refd += find_cids(decoded)
part.set_payload(replace_cids(decoded,mid).encode(part.get_content_charset('ascii')))
- (filename,cid) = link_to_cached_file(part,mid,counter)
- counter +=1
- yield '<iframe class="embedded-html" src="%s">' % os.path.join(prefix,cachedir,mid,filename)
+ (filename,cid) = link_to_cached_file(part,mid,counter)
+ counter +=1
+ yield '<iframe class="embedded-html" src="%s">' % os.path.join(prefix,cachedir,mid,filename)
yield '</div>'
else:
yield '<div id="%s">' % (part.get_content_type().replace('/','-'),)
--
2.15.1
More information about the notmuch
mailing list