Skip to content

Commit

Permalink
Remove python2 constructs from gherkin-python.razor
Browse files Browse the repository at this point in the history
  • Loading branch information
youtux committed Sep 16, 2024
1 parent a024521 commit 3253c25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/gherkin-python.razor
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,15 @@ 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
self.token_queue = token_queue
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
Expand Down

0 comments on commit 3253c25

Please sign in to comment.