summaryrefslogtreecommitdiff
path: root/alot/settings
diff options
context:
space:
mode:
authorPatrick Totzke <patricktotzke@gmail.com>2013-03-16 17:39:56 +0000
committerPatrick Totzke <patricktotzke@gmail.com>2013-03-16 17:39:56 +0000
commitd3c1880a60ddd8ded397d92cddf310a948b97fdc (patch)
tree7835ba12b1ad9a345c20be46baeda72b8c2a7549 /alot/settings
parentd811fd566e82f4df85456f5639ab8aae7f517531 (diff)
pep8/pyflakes fixes
Diffstat (limited to 'alot/settings')
-rw-r--r--alot/settings/manager.py6
-rw-r--r--alot/settings/theme.py1
2 files changed, 5 insertions, 2 deletions
diff --git a/alot/settings/manager.py b/alot/settings/manager.py
index 9a74080a..67dd553c 100644
--- a/alot/settings/manager.py
+++ b/alot/settings/manager.py
@@ -137,7 +137,8 @@ class SettingsManager(object):
raise ConfigError(msg)
elif abook['type'] == 'abook':
contacts_path = abook['abook_contacts_file']
- args['abook'] = AbookAddressBook(contacts_path, ignorecase=abook['ignorecase'])
+ args['abook'] = AbookAddressBook(
+ contacts_path, ignorecase=abook['ignorecase'])
else:
del(args['abook'])
@@ -318,7 +319,8 @@ class SettingsManager(object):
cand = filter(lambda x: x.startswith(prefixs), candidates)
if prefix in candidates:
candidates = cand + [prefix]
- else: candidates = cand
+ else:
+ candidates = cand
return candidates
def get_keybinding(self, mode, key):
diff --git a/alot/settings/theme.py b/alot/settings/theme.py
index 0edf09e2..308ec660 100644
--- a/alot/settings/theme.py
+++ b/alot/settings/theme.py
@@ -13,6 +13,7 @@ from errors import ConfigError
DEFAULTSPATH = os.path.join(os.path.dirname(__file__), '..', 'defaults')
DUMMYDEFAULT = ('default',) * 6
+
class Theme(object):
"""Colour theme"""
def __init__(self, path):