diff --git a/python/gherkin-python.razor b/python/gherkin-python.razor index 3d34dd361..9bc1dbd94 100755 --- a/python/gherkin-python.razor +++ b/python/gherkin-python.razor @@ -41,7 +41,7 @@ RULE_TYPE = [ ] -class ParserContext(object): +class ParserContext: def __init__(self, token_scanner, token_matcher, token_queue, errors): self.token_scanner = token_scanner self.token_matcher = token_matcher @@ -49,7 +49,7 @@ class ParserContext(object): self.errors = errors -class @(Model.ParserClassName)(object): +class @(Model.ParserClassName): def __init__(self, ast_builder=None): self.ast_builder = ast_builder if ast_builder is not None else AstBuilder() self.stop_at_first_error = False