Skip to content

Commit 573589c

Browse files
[3.13] pythongh-138257: Fix internal RuleCollectorVisitor attribute name (pythonGH-138208) (python#138260)
pythongh-138257: Fix internal `RuleCollectorVisitor` attribute name (pythonGH-138208) The internal `RuleCollectorVisitor` class had an attribute named "rulses" instead of "rules" that other `GrammarVisitor` subclasses define. (cherry picked from commit 11217a8) Co-authored-by: chemelnucfin <[email protected]>
1 parent e93cacb commit 573589c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tools/peg_generator/pegen/parser_generator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class RuleCollectorVisitor(GrammarVisitor):
4444
"""Visitor that invokes a provieded callmaker visitor with just the NamedItem nodes"""
4545

4646
def __init__(self, rules: Dict[str, Rule], callmakervisitor: GrammarVisitor) -> None:
47-
self.rulses = rules
47+
self.rules = rules
4848
self.callmaker = callmakervisitor
4949

5050
def visit_Rule(self, rule: Rule) -> None:

0 commit comments

Comments
 (0)