summaryrefslogtreecommitdiff
path: root/alot/settings
diff options
context:
space:
mode:
authorPatrick Totzke <patricktotzke@gmail.com>2012-09-01 17:09:36 +0100
committerPatrick Totzke <patricktotzke@gmail.com>2012-09-01 17:09:36 +0100
commit4c8572d41d74760165569b4de10dc2904e70ef54 (patch)
treeb5a5a4d1dc688bb0d4d890e04e9dfa1656695b7e /alot/settings
parent02006b3478702f5c8f8573863550841e9e9c42cc (diff)
cleanup: pep8/pyflakes fixes
Diffstat (limited to 'alot/settings')
-rw-r--r--alot/settings/manager.py5
-rw-r--r--alot/settings/utils.py1
2 files changed, 3 insertions, 3 deletions
diff --git a/alot/settings/manager.py b/alot/settings/manager.py
index 24d648e2..1d38ef82 100644
--- a/alot/settings/manager.py
+++ b/alot/settings/manager.py
@@ -81,8 +81,9 @@ class SettingsManager(object):
if themes_dir:
themes_dir = os.path.expanduser(themes_dir)
else:
- themes_dir = os.path.join(os.environ.get('XDG_CONFIG_HOME',
- os.path.expanduser('~/.config')), 'alot', 'themes')
+ configdir = os.environ.get('XDG_CONFIG_HOME',
+ os.path.expanduser('~/.config'))
+ themes_dir = os.path.join(configdir, 'alot', 'themes')
logging.debug(themes_dir)
if themestring:
diff --git a/alot/settings/utils.py b/alot/settings/utils.py
index 2647bb75..c3dbf3b0 100644
--- a/alot/settings/utils.py
+++ b/alot/settings/utils.py
@@ -41,7 +41,6 @@ def read_config(configpath=None, specpath=None, checks={}):
except ConfigObjError as e:
raise ConfigError(e.message)
-
if results != True:
error_msg = ''
for (section_list, key, res) in flatten_errors(config, results):