summaryrefslogtreecommitdiff
path: root/alot/commands/envelope.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/envelope.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/envelope.py')
-rw-r--r--alot/commands/envelope.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/alot/commands/envelope.py b/alot/commands/envelope.py
index 062b059e..69b63f3a 100644
--- a/alot/commands/envelope.py
+++ b/alot/commands/envelope.py
@@ -115,7 +115,7 @@ class SaveCommand(Command):
envelope = ui.current_buffer.envelope
# determine account to use
- sname, saddr = email.Utils.parseaddr(envelope.get('From'))
+ _, saddr = email.Utils.parseaddr(envelope.get('From'))
account = settings.get_account_by_address(saddr)
if account is None:
if not settings.get_accounts():
@@ -215,7 +215,7 @@ class SendCommand(Command):
msg = self.mail
if not isinstance(msg, email.message.Message):
msg = email.message_from_string(self.mail)
- sname, saddr = email.Utils.parseaddr(msg.get('From', ''))
+ _, saddr = email.Utils.parseaddr(msg.get('From', ''))
account = settings.get_account_by_address(saddr)
if account is None:
if not settings.get_accounts():
@@ -230,7 +230,7 @@ class SendCommand(Command):
self.mail = str(self.mail)
# define callback
- def afterwards(returnvalue):
+ def afterwards(_):
initial_tags = []
if self.envelope is not None:
self.envelope.sending = False