cast boolean thing to int to make py3.3 happy
This commit is contained in:
parent
29b4082b00
commit
45b98d6e70
|
@ -484,7 +484,7 @@ class AssertionRewriter(ast.NodeVisitor):
|
||||||
res_var = self.variable()
|
res_var = self.variable()
|
||||||
expl_list = self.assign(ast.List([], ast.Load()))
|
expl_list = self.assign(ast.List([], ast.Load()))
|
||||||
app = ast.Attribute(expl_list, "append", ast.Load())
|
app = ast.Attribute(expl_list, "append", ast.Load())
|
||||||
is_or = isinstance(boolop.op, ast.Or)
|
is_or = int(isinstance(boolop.op, ast.Or))
|
||||||
body = save = self.statements
|
body = save = self.statements
|
||||||
fail_save = self.on_failure
|
fail_save = self.on_failure
|
||||||
levels = len(boolop.values) - 1
|
levels = len(boolop.values) - 1
|
||||||
|
|
Loading…
Reference in New Issue