From bfcdb8734ea13d4404958b0caf100569a5c41f3c Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Fri, 4 Oct 2002 20:01:48 +0000 Subject: .iterkeys() is not needed. --- Lib/sets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): -- cgit v0.12