From: Raymond Hettinger Date: Fri, 4 Oct 2002 20:01:48 +0000 (+0000) Subject: .iterkeys() is not needed. X-Git-Tag: v2.3c1~3882 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bfcdb8734ea13d4404958b0caf100569a5c41f3c;p=thirdparty%2FPython%2Fcpython.git .iterkeys() is not needed. --- diff --git a/Lib/sets.py b/Lib/sets.py index 069be64a7df5..5f0f0a2d38c1 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):