summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpazz <patricktotzke@gmail.com>2011-07-17 00:10:08 +0100
committerpazz <patricktotzke@gmail.com>2011-07-17 00:10:08 +0100
commitbfc131406b99edf35dfefe6036dcc1c732adc53a (patch)
tree5587f8924e442928d2ce9f6bded0c7fb9695c310
parent43268e0c0f54b716fe034ad8c976ea01338495f6 (diff)
small pep8 fixes
-rw-r--r--alot/commandfactory.py5
1 files 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