]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
.iterkeys() is not needed.
authorRaymond Hettinger <python@rcn.com>
Fri, 4 Oct 2002 20:01:48 +0000 (20:01 +0000)
committerRaymond Hettinger <python@rcn.com>
Fri, 4 Oct 2002 20:01:48 +0000 (20:01 +0000)
Lib/sets.py

index 069be64a7df5be2182a2561588d2b933d020c806..5f0f0a2d38c18772d6e4e56a44dc162142112bd1 100644 (file)
@@ -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):