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/thread.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'alot/commands/thread.py') 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) -- cgit v1.2.3