Commit 2a70788f authored by dbarbera's avatar dbarbera
Browse files

flake8

parent 54a5d274
......@@ -501,7 +501,7 @@ def _generate_for_iterable(loop):
@singledispatch
def reference(prim):
''' Generate a variable reference '''
raise TypeError('Unsupported reference: ' + str(expr))
raise TypeError('Unsupported reference: ' + str(prim))
@reference.register(ogAST.PrimVariable)
......@@ -861,7 +861,7 @@ def _decision(dec):
g.builder.position_at_end(ans_cond_block)
if ans.kind == 'constant':
next_block = ans_cond_blocks[idx+1] if idx < len(ans_cond_blocks)-1 else end_block
next_block = ans_cond_blocks[idx + 1] if idx < len(ans_cond_blocks) - 1 else end_block
expr = ans.openRangeOp()
expr.left = dec.question
......
Supports Markdown
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