summaryrefslogtreecommitdiff
path: root/alot/buffers.py
diff options
context:
space:
mode:
authorMichael Stapelberg <michael@stapelberg.de>2012-05-01 13:20:03 +0200
committerMichael Stapelberg <michael@stapelberg.de>2012-05-01 13:20:03 +0200
commit1826b11c4b35e6b05f01d56501cb940515ff6f72 (patch)
tree84b07a3bcbaeb7039f8c4f896a6082883a7c09ee /alot/buffers.py
parent302b2e51da3aadd5156130399bf846a5f252213f (diff)
don’t use 'lines'
Diffstat (limited to 'alot/buffers.py')
-rw-r--r--alot/buffers.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/alot/buffers.py b/alot/buffers.py
index 0b27c23d..266b3e11 100644
--- a/alot/buffers.py
+++ b/alot/buffers.py
@@ -122,12 +122,8 @@ class EnvelopeBuffer(Buffer):
displayed_widgets.append(self.header_wgt)
# sign/encrypt lines
- lines = []
if self.envelope.sign:
- lines.append(('sign', 'yes'))
-
- if lines:
- self.crypto_wgt = widgets.HeadersList(lines)
+ self.crypto_wgt = widgets.HeadersList([ ('sign', 'yes') ])
displayed_widgets.append(self.crypto_wgt)
#display attachments