Skip to content
Snippets Groups Projects
Commit 057ebf77 authored by Pierre-Yves David's avatar Pierre-Yves David
Browse files

addset: drop `.set()` usage during iteration

We can use the containment check directly.
parent 5b635b44
No related branches found
No related tags found
No related merge requests found
......@@ -2541,5 +2541,5 @@
def gen():
for r in self._r1:
yield r
s = self._r1.set()
inr1 = self._r1.__contains__
for r in self._r2:
......@@ -2545,5 +2545,5 @@
for r in self._r2:
if r not in s:
if not inr1(r):
yield r
gen = gen()
else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment