summaryrefslogtreecommitdiff
path: root/urwid/font.py
diff options
context:
space:
mode:
Diffstat (limited to 'urwid/font.py')
-rwxr-xr-xurwid/font.py2
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