mirror of
https://github.com/python/cpython.git
synced 2025-10-28 20:25:04 +00:00
.iterkeys() is not needed.
This commit is contained in:
parent
57b38ed424
commit
bfcdb8734e
1 changed files with 1 additions and 1 deletions
|
|
@ -177,7 +177,7 @@ def __and__(self, other):
|
||||||
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):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue