summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2002-10-04 20:01:48 (GMT)
committerRaymond Hettinger <python@rcn.com>2002-10-04 20:01:48 (GMT)
commitbfcdb8734ea13d4404958b0caf100569a5c41f3c (patch)
tree1423a7f872a3e08717ab2a72dbb8b3d707fee2bd /Lib
parent57b38ed424292803c0a3578d2f68cc0ef1c8661d (diff)
downloadcpython-bfcdb8734ea13d4404958b0caf100569a5c41f3c.zip
cpython-bfcdb8734ea13d4404958b0caf100569a5c41f3c.tar.gz
cpython-bfcdb8734ea13d4404958b0caf100569a5c41f3c.tar.bz2
.iterkeys() is not needed.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/sets.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/sets.py b/Lib/sets.py
index 069be64..5f0f0a2 100644
--- a/Lib/sets.py
+++ b/Lib/sets.py
@@ -177,7 +177,7 @@ class BaseSet(object):
little, big = self, other
else:
little, big = other, self
- common = filter(big._data.has_key, little._data.iterkeys())
+ common = filter(big._data.has_key, little._data)
return self.__class__(common)
def intersection(self, other):