From 41ef1f14636caf213e7c25dc3eeb3d911418ee72 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Tue, 20 Dec 2016 12:12:07 -0800 Subject: 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). --- alot/commands/envelope.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'alot/commands/envelope.py') 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 -- cgit v1.2.3