diff options
author | Anton Khirnov <anton@khirnov.net> | 2021-01-16 10:49:06 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2021-01-16 10:49:06 +0100 |
commit | 3fb4d66b584beb3fc91fc22708cd83b125b567d9 (patch) | |
tree | 93c502868e778dd8c36fb06b06f09a831622af55 /alot/widgets | |
parent | b1d0512f0e20b709858151818ddc508fd00dfe4a (diff) |
helper: get rid of decode_string()
It just adds unnecessary type confusion.
In most places where it is used, the types are always str, so it does
nothing. In the few others, the encoding/decoding is better handled
explicitly.
Diffstat (limited to 'alot/widgets')
-rw-r--r-- | alot/widgets/globals.py | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/alot/widgets/globals.py b/alot/widgets/globals.py index 6f7531d2..387797af 100644 --- a/alot/widgets/globals.py +++ b/alot/widgets/globals.py @@ -9,7 +9,6 @@ import re import operator import urwid -from ..helper import string_decode from ..settings.const import settings from ..db.attachment import Attachment from ..errors import CompletionError @@ -127,8 +126,6 @@ class CompleteEdit(urwid.Edit): self.historypos = None self.focus_in_clist = 0 - if not isinstance(edit_text, str): - edit_text = string_decode(edit_text) self.start_completion_pos = len(edit_text) self.completions = None urwid.Edit.__init__(self, edit_text=edit_text, **kwargs) |