summaryrefslogtreecommitdiff
path: root/alot/commands
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2016-12-13 12:15:48 -0800
committerDylan Baker <dylan@pnwbakers.com>2016-12-13 12:34:15 -0800
commitd3aa06f81ffbfb24de122b849263dc7655332371 (patch)
treea6bf490042f276a10054acb887e294d312dd68d2 /alot/commands
parent5a7fea876b893101d0d534100ae6b521e275d4eb (diff)
Don't pass None as second argument of dict.get()
This is the default value.
Diffstat (limited to 'alot/commands')
-rw-r--r--alot/commands/thread.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/alot/commands/thread.py b/alot/commands/thread.py
index 55920090..ad7110ed 100644
--- a/alot/commands/thread.py
+++ b/alot/commands/thread.py
@@ -965,8 +965,8 @@ class OpenAttachmentCommand(Command):
handler_cmdlist = split_commandstring(handler_cmd)
# 'needsterminal' makes handler overtake the terminal
- nt = entry.get('needsterminal', None)
- overtakes = (nt is None)
+ # XXX: could this be repalced with "'needsterminal' not in entry"?
+ overtakes = entry.get('needsterminal') is None
ui.apply_command(ExternalCommand(handler_cmdlist,
stdin=handler_stdin,