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