summaryrefslogtreecommitdiff
path: root/alot/commands/thread.py
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2016-12-20 12:12:07 -0800
committerDylan Baker <dylan@pnwbakers.com>2016-12-21 17:18:39 -0800
commit41ef1f14636caf213e7c25dc3eeb3d911418ee72 (patch)
tree75d34e6edaecaf3ad66fb544e0cd7a996fd4ad4d /alot/commands/thread.py
parentbf2005c111289fcd7f55b92e64cfa8c43b9bfdbc (diff)
Replace unused arguments with _
This patch replaces a large number (but not all) unused arguments with the standard ``_`` placeholder. This has the advantage of signaling that these values are unused. There are a number of places that I've chosen not to apply this, largely in methods that have publicly define signatures that they inherit (usually from urwid).
Diffstat (limited to 'alot/commands/thread.py')
-rw-r--r--alot/commands/thread.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/alot/commands/thread.py b/alot/commands/thread.py
index 2aa96cf8..90b68960 100644
--- a/alot/commands/thread.py
+++ b/alot/commands/thread.py
@@ -183,7 +183,7 @@ class ReplyCommand(Command):
# set From-header and sending account
try:
- from_header, account = determine_sender(mail, 'reply')
+ from_header, _ = determine_sender(mail, 'reply')
except AssertionError as e:
ui.notify(e.message, priority='error')
return
@@ -373,7 +373,7 @@ class ForwardCommand(Command):
# set From-header and sending account
try:
- from_header, account = determine_sender(mail, 'reply')
+ from_header, _ = determine_sender(mail, 'reply')
except AssertionError as e:
ui.notify(e.message, priority='error')
return
@@ -471,7 +471,6 @@ class EditNewCommand(Command):
self.message = ui.current_buffer.get_selected_message()
mail = self.message.get_email()
# set body text
- name, address = self.message.get_author()
mailcontent = self.message.accumulate_body()
envelope = Envelope(bodytext=mailcontent)