diff options
author | Dylan Baker <baker.dylan.c@gmail.com> | 2017-08-22 11:00:26 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-22 11:00:26 -0700 |
commit | c53f2064460c0c633aee5386f01dc03716c42ecb (patch) | |
tree | 989c663d7a711d0d8ba58684db720323765ffeab /alot | |
parent | 1ac4e6b19dd364b20e0151d2475bebb7948f24da (diff) | |
parent | 20dab95640592bd4f539a8a781f0c80c21cc5708 (diff) |
Merge pull request #1131 from lucc/fix/hash
Fix hash(TagWidget) with unicode tag representation
Diffstat (limited to 'alot')
-rw-r--r-- | alot/widgets/globals.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/alot/widgets/globals.py b/alot/widgets/globals.py index f602add0..6ce29827 100644 --- a/alot/widgets/globals.py +++ b/alot/widgets/globals.py @@ -290,7 +290,7 @@ class TagWidget(urwid.AttrMap): self.translated = representation['translated'] self.hidden = self.translated == '' self.txt = urwid.Text(self.translated, wrap='clip') - self.__hash = hash('{}_{}'.format(self.translated, self.txt)) + self.__hash = hash((self.translated, self.txt)) normal_att = representation['normal'] focus_att = representation['focussed'] self.attmaps = {'normal': normal_att, 'focus': focus_att} |