diff options
author | Georg Brandl <georg@python.org> | 2010-02-06 22:59:15 +0000 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2010-02-06 22:59:15 +0000 |
commit | 84fedf7f061797b1fc95b778e517e6dc86e36db2 (patch) | |
tree | fd5291aa914152e1f49eb5197f28b76fedb9e0d3 /Lib/UserDict.py | |
parent | 7d4b759bd972742dfba35597708522f91be5548a (diff) | |
download | cpython-git-84fedf7f061797b1fc95b778e517e6dc86e36db2.tar.gz |
No need to assign the results of expressions used only for side effects.
Diffstat (limited to 'Lib/UserDict.py')
-rw-r--r-- | Lib/UserDict.py | 2 |
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 |