diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2017-08-03 14:34:55 -0700 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2017-08-03 14:34:55 -0700 |
commit | 037f223debd0aabfab3e2aad880765764f973d31 (patch) | |
tree | fe9b094cd1a75355644ec860a48e5239c86afc3e /alot/settings | |
parent | 827c9c0b78840048904883611a0c99bfa77b1725 (diff) |
settings: do not store SettingsManager instance in __init__.py
This can create circular imports in unittests, which causes difficult to
debug errors.
Fixes #1076
Diffstat (limited to 'alot/settings')
-rw-r--r-- | alot/settings/__init__.py | 8 | ||||
-rw-r--r-- | alot/settings/const.py | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/alot/settings/__init__.py b/alot/settings/__init__.py index 11137d1d..e69de29b 100644 --- a/alot/settings/__init__.py +++ b/alot/settings/__init__.py @@ -1,8 +0,0 @@ -# Copyright (C) 2011-2012 Patrick Totzke <patricktotzke@gmail.com> -# This file is released under the GNU GPL, version 3 or a later revision. -# For further details see the COPYING file -from __future__ import absolute_import - -from .manager import SettingsManager - -settings = SettingsManager() diff --git a/alot/settings/const.py b/alot/settings/const.py new file mode 100644 index 00000000..11137d1d --- /dev/null +++ b/alot/settings/const.py @@ -0,0 +1,8 @@ +# Copyright (C) 2011-2012 Patrick Totzke <patricktotzke@gmail.com> +# This file is released under the GNU GPL, version 3 or a later revision. +# For further details see the COPYING file +from __future__ import absolute_import + +from .manager import SettingsManager + +settings = SettingsManager() |