From 037f223debd0aabfab3e2aad880765764f973d31 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Thu, 3 Aug 2017 14:34:55 -0700 Subject: settings: do not store SettingsManager instance in __init__.py This can create circular imports in unittests, which causes difficult to debug errors. Fixes #1076 --- alot/settings/__init__.py | 8 -------- alot/settings/const.py | 8 ++++++++ 2 files changed, 8 insertions(+), 8 deletions(-) create mode 100644 alot/settings/const.py (limited to 'alot/settings') 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 -# 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 +# 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() -- cgit v1.2.3