diff options
author | Eevee (Alex Munroe) <eevee.git@veekun.com> | 2014-05-11 19:54:35 -0700 |
---|---|---|
committer | Eevee (Alex Munroe) <eevee.git@veekun.com> | 2014-05-11 21:30:23 -0700 |
commit | be714a183206490aafec0e244b166ba3de803142 (patch) | |
tree | 1986bc42504e299e1cb472ffe608a7e34c83de99 /urwid/font.py | |
parent | ef05b48a1cd4d0071873022d1a31d2a076911eb0 (diff) | |
download | urwid-be714a183206490aafec0e244b166ba3de803142.tar.gz |
Fix some Python 3 things that work fine in 2.6 anyway.
Diffstat (limited to 'urwid/font.py')
-rwxr-xr-x | urwid/font.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/urwid/font.py b/urwid/font.py index 0a3261b..bf0c2b1 100755 --- a/urwid/font.py +++ b/urwid/font.py @@ -111,7 +111,7 @@ class Font(object): return "".join(l) def char_width(self, c): - if self.char.has_key(c): + if c in self.char: return self.char[c][0] return 0 |