From 3253c25ee0c8c90b475d4b858c29ef8a034fb85d Mon Sep 17 00:00:00 2001 From: Alessio Bogon <778703+youtux@users.noreply.github.com> Date: Mon, 16 Sep 2024 20:32:47 +0200 Subject: [PATCH] Remove python2 constructs from `gherkin-python.razor` --- python/gherkin-python.razor | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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