summaryrefslogtreecommitdiff
path: root/Lib/UserDict.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/UserDict.py')
-rw-r--r--Lib/UserDict.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/UserDict.py b/Lib/UserDict.py
index 0497f65d1d..bd64f84d42 100644
--- a/Lib/UserDict.py
+++ b/Lib/UserDict.py
@@ -98,7 +98,7 @@ class DictMixin:
yield k
def has_key(self, key):
try:
- value = self[key]
+ self[key]
except KeyError:
return False
return True