summaryrefslogtreecommitdiff
path: root/examples/calc.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/calc.py')
-rwxr-xr-xexamples/calc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/calc.py b/examples/calc.py
index ec1f039..2ac324a 100755
--- a/examples/calc.py
+++ b/examples/calc.py
@@ -311,7 +311,7 @@ class CellColumn( urwid.WidgetWrap ):
if sub != 0:
# f is not an edit widget
return key
- if OPERATORS.has_key(key):
+ if key in OPERATORS:
# move trailing text to new cell below
edit = self.walker.get_cell(i).edit
cursor_pos = edit.edit_pos