summaryrefslogtreecommitdiff
path: root/alot/db
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/db
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/db')
-rw-r--r--alot/db/manager.py3
-rw-r--r--alot/db/utils.py5
2 files changed, 3 insertions, 5 deletions
diff --git a/alot/db/manager.py b/alot/db/manager.py
index 3520ee63..7f2cf7eb 100644
--- a/alot/db/manager.py
+++ b/alot/db/manager.py
@@ -138,8 +138,7 @@ class DBManager(object):
if cmd == 'add':
logging.debug('add')
path, tags = current_item[2:]
- msg, status = db.add_message(path,
- sync_maildir_flags=sync)
+ msg, _ = db.add_message(path, sync_maildir_flags=sync)
logging.debug('added msg')
msg.freeze()
logging.debug('freeze')
diff --git a/alot/db/utils.py b/alot/db/utils.py
index 9c325247..9541c881 100644
--- a/alot/db/utils.py
+++ b/alot/db/utils.py
@@ -302,7 +302,7 @@ def extract_body(mail, types=None, field_key='copiousoutput'):
body_parts.append(string_sanitize(raw_payload))
else:
# get mime handler
- handler, entry = settings.mailcap_find_match(ctype, key=field_key)
+ _, entry = settings.mailcap_find_match(ctype, key=field_key)
tempfile_name = None
stdin = None
@@ -332,8 +332,7 @@ def extract_body(mail, types=None, field_key='copiousoutput'):
logging.debug('parms: %s', str(parms))
cmdlist = split_commandstring(cmd)
# call handler
- rendered_payload, errmsg, retval = helper.call_cmd(
- cmdlist, stdin=stdin)
+ rendered_payload, _, _ = helper.call_cmd(cmdlist, stdin=stdin)
# remove tempfile
if tempfile_name: