diff options
author | Anton Khirnov <anton@khirnov.net> | 2021-02-10 14:10:42 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2021-02-10 15:17:25 +0100 |
commit | 666aab1a3fcd5f33659f67540d23b96fa8fa2f98 (patch) | |
tree | d6a047e2c0b34b45e3075d022012157a500d805f /alot/settings | |
parent | 752860cf24fc22208d7e9138d0a13ea5d616b4ca (diff) |
Cosmetics, clean up imports
Diffstat (limited to 'alot/settings')
-rw-r--r-- | alot/settings/const.py | 1 | ||||
-rw-r--r-- | alot/settings/manager.py | 25 | ||||
-rw-r--r-- | alot/settings/theme.py | 6 | ||||
-rw-r--r-- | alot/settings/utils.py | 9 |
4 files changed, 22 insertions, 19 deletions
diff --git a/alot/settings/const.py b/alot/settings/const.py index b1449c29..d7355dfe 100644 --- a/alot/settings/const.py +++ b/alot/settings/const.py @@ -1,6 +1,7 @@ # 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 .manager import SettingsManager settings = SettingsManager() diff --git a/alot/settings/manager.py b/alot/settings/manager.py index badda2af..1be5a0cc 100644 --- a/alot/settings/manager.py +++ b/alot/settings/manager.py @@ -2,28 +2,27 @@ # This file is released under the GNU GPL, version 3 or a later revision. # For further details see the COPYING file -from datetime import datetime, timedelta - +from datetime import datetime, timedelta +import email import importlib.util import itertools import logging import mailcap import os import re -import email -from configobj import ConfigObj, Section -from ..account import SendmailAccount -from ..addressbook.abook import AbookAddressBook -from ..addressbook.external import ExternalAddressbook -from ..helper import get_xdg_env -from ..utils import configobj as checks +from configobj import ConfigObj, Section -from .errors import ConfigError, NoMatchingAccount -from .utils import read_config -from .utils import resolve_att -from .theme import Theme +from .errors import ConfigError, NoMatchingAccount +from .utils import read_config +from .utils import resolve_att +from .theme import Theme +from ..account import SendmailAccount +from ..addressbook.abook import AbookAddressBook +from ..addressbook.external import ExternalAddressbook +from ..helper import get_xdg_env +from ..utils import configobj as checks DEFAULTSPATH = os.path.join(os.path.dirname(__file__), '..', 'defaults') DATA_DIRS = get_xdg_env('XDG_DATA_DIRS', diff --git a/alot/settings/theme.py b/alot/settings/theme.py index df34cba9..0eda72f2 100644 --- a/alot/settings/theme.py +++ b/alot/settings/theme.py @@ -1,11 +1,13 @@ # 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 + import os -from ..utils import configobj as checks -from .utils import read_config from .errors import ConfigError +from .utils import read_config + +from ..utils import configobj as checks DEFAULTSPATH = os.path.join(os.path.dirname(__file__), '..', 'defaults') DUMMYDEFAULT = ('default',) * 6 diff --git a/alot/settings/utils.py b/alot/settings/utils.py index 65942aff..e830fafc 100644 --- a/alot/settings/utils.py +++ b/alot/settings/utils.py @@ -1,12 +1,13 @@ # 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 + import logging -from configobj import (ConfigObj, ConfigObjError, flatten_errors, - get_extra_values) -from validate import Validator -from urwid import AttrSpec +from configobj import (ConfigObj, ConfigObjError, flatten_errors, + get_extra_values) +from urwid import AttrSpec +from validate import Validator from .errors import ConfigError |