forked from M-Labs/artiq
Mollify PEP 0479.
This commit is contained in:
parent
424ca53fa0
commit
f52d364806
|
@ -236,7 +236,10 @@ class Phi(Instruction):
|
||||||
def incoming(self):
|
def incoming(self):
|
||||||
operand_iter = iter(self.operands)
|
operand_iter = iter(self.operands)
|
||||||
while True:
|
while True:
|
||||||
|
try:
|
||||||
yield next(operand_iter), next(operand_iter)
|
yield next(operand_iter), next(operand_iter)
|
||||||
|
except StopIteration:
|
||||||
|
return
|
||||||
|
|
||||||
def incoming_blocks(self):
|
def incoming_blocks(self):
|
||||||
return (block for (block, value) in self.incoming())
|
return (block for (block, value) in self.incoming())
|
||||||
|
|
Loading…
Reference in New Issue