diff --git a/src/interp.py b/src/interp.py index bd44129..b59a5f8 100644 --- a/src/interp.py +++ b/src/interp.py @@ -104,7 +104,7 @@ def run_statement(self, ast): subject = self.resolve_value(ast.subject) - if ast.verb == None: + if not ast.verb: return subject args = [] for arg in ast.arguments: diff --git a/tests/test_parse.py b/tests/test_parse.py index bb29a6a..a7886f8 100644 --- a/tests/test_parse.py +++ b/tests/test_parse.py @@ -152,7 +152,7 @@ @composite def draw_token_bool(draw): bool = draw(booleans()) - if bool == True: + if bool is True: code = "True" else: code = "False"