diff options
Diffstat (limited to 'alot/settings')
-rw-r--r-- | alot/settings/manager.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/alot/settings/manager.py b/alot/settings/manager.py index ab5e70fb..e5dcc4b3 100644 --- a/alot/settings/manager.py +++ b/alot/settings/manager.py @@ -16,7 +16,7 @@ from configobj import ConfigObj, Section from ..account import SendmailAccount from ..addressbook.abook import AbookAddressBook from ..addressbook.external import ExternalAddressbook -from ..helper import string_decode, get_xdg_env +from ..helper import get_xdg_env from ..utils import configobj as checks from .errors import ConfigError, NoMatchingAccount @@ -422,7 +422,6 @@ class SettingsManager: fallback_focus) translated = cfg['tags'][sec]['translated'] - translated = string_decode(translated, 'UTF-8') if translated is None: translated = tag translation = cfg['tags'][sec]['translation'] @@ -585,11 +584,11 @@ class SettingsManager: fixed_format = self.get('timestamp_format') if fixed_format: - rep = string_decode(d.strftime(fixed_format), 'UTF-8') + rep = d.strftime(fixed_format) else: format_hook = self.get_hook('timestamp_format') if format_hook: - rep = string_decode(format_hook(d), 'UTF-8') + rep = format_hook(d) else: rep = _pretty_datetime(d) return rep |