Kaydet (Commit) bfcdb873 authored tarafından Raymond Hettinger's avatar Raymond Hettinger

.iterkeys() is not needed.

üst 57b38ed4
...@@ -177,7 +177,7 @@ class BaseSet(object): ...@@ -177,7 +177,7 @@ class BaseSet(object):
little, big = self, other little, big = self, other
else: else:
little, big = other, self 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) return self.__class__(common)
def intersection(self, other): def intersection(self, other):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment