summaryrefslogtreecommitdiff
path: root/alot/commands/globals.py
diff options
context:
space:
mode:
authorBen Finney <ben+python@benfinney.id.au>2018-04-23 16:30:28 +1000
committerBen Finney <ben@benfinney.id.au>2018-04-23 19:54:46 +1000
commit018279b18e7c95b40d94a09fc68fa3b3aa1fc6b0 (patch)
tree219ede6fac37dfa3a35027dfef75c68ac689c409 /alot/commands/globals.py
parent950839f390dbdcd285ceae86b7ddeb4ce62a50d4 (diff)
Wrap long statements on open-bracket syntax.
Diffstat (limited to 'alot/commands/globals.py')
-rw-r--r--alot/commands/globals.py21
1 files changed, 12 insertions, 9 deletions
diff --git a/alot/commands/globals.py b/alot/commands/globals.py
index d335e8cf..4e272b8e 100644
--- a/alot/commands/globals.py
+++ b/alot/commands/globals.py
@@ -271,9 +271,10 @@ class ExternalCommand(Command):
def thread_code(*_):
try:
- proc = subprocess.Popen(self.cmdlist, shell=self.shell,
- stdin=subprocess.PIPE if stdin else None,
- stderr=subprocess.PIPE)
+ proc = subprocess.Popen(
+ self.cmdlist, shell=self.shell,
+ stdin=subprocess.PIPE if stdin else None,
+ stderr=subprocess.PIPE)
except OSError as e:
return str(e)
@@ -623,8 +624,8 @@ class HelpCommand(Command):
globalmaps, modemaps = settings.get_keybindings(ui.mode)
# build table
- maxkeylength = len(max(list(modemaps.keys()) + list(globalmaps.keys()),
- key=len))
+ maxkeylength = len(
+ max(list(modemaps.keys()) + list(globalmaps.keys()), key=len))
keycolumnwidth = maxkeylength + 2
linewidgets = []
@@ -689,10 +690,12 @@ class HelpCommand(Command):
class ComposeCommand(Command):
"""compose a new email"""
- def __init__(self, envelope=None, headers=None, template=None, sender=u'',
- tags=None, subject=u'', to=None, cc=None, bcc=None, attach=None,
- omit_signature=False, spawn=None, rest=None, encrypt=False,
- **kwargs):
+ def __init__(
+ self,
+ envelope=None, headers=None, template=None, sender=u'',
+ tags=None, subject=u'', to=None, cc=None, bcc=None, attach=None,
+ omit_signature=False, spawn=None, rest=None, encrypt=False,
+ **kwargs):
"""
:param envelope: use existing envelope
:type envelope: :class:`~alot.db.envelope.Envelope`