cast boolean thing to int to make py3.3 happy

This commit is contained in:
Benjamin Peterson 2011-10-14 18:08:10 -04:00
parent 29b4082b00
commit 45b98d6e70
1 changed files with 1 additions and 1 deletions

View File

@ -484,7 +484,7 @@ class AssertionRewriter(ast.NodeVisitor):
res_var = self.variable()
expl_list = self.assign(ast.List([], 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
fail_save = self.on_failure
levels = len(boolop.values) - 1