From bfc131406b99edf35dfefe6036dcc1c732adc53a Mon Sep 17 00:00:00 2001 From: pazz Date: Sun, 17 Jul 2011 00:10:08 +0100 Subject: small pep8 fixes --- alot/commandfactory.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/alot/commandfactory.py b/alot/commandfactory.py index 01a52412..410481ed 100644 --- a/alot/commandfactory.py +++ b/alot/commandfactory.py @@ -103,6 +103,7 @@ ALLOWED_COMMANDS = { 'thread': ['toggletag'] + globalcomands, } + def interpret_commandline(cmdline, mode): if not cmdline: return None @@ -117,7 +118,7 @@ def interpret_commandline(cmdline, mode): # buffer commands depend on first parameter only if cmd == 'buffer' and len(params) == 1: - cmd = cmd + ' ' +params[0] + cmd = cmd + ' ' + params[0] params = [] # allow to shellescape without a space after '!' if cmd.startswith('!'): @@ -126,7 +127,7 @@ def interpret_commandline(cmdline, mode): # check if this command makes sense in current mode if cmd not in ALLOWED_COMMANDS[mode]: - logging.debug('not allowed in mode %s: %s' % (mode,cmd)) + logging.debug('not allowed in mode %s: %s' % (mode, cmd)) return None if not params: # commands that don't accept parameter -- cgit v1.2.3