mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
gh-138257: Fix internal RuleCollectorVisitor attribute name (#138208)
The internal `RuleCollectorVisitor` class had an attribute named "rulses" instead of "rules" that other `GrammarVisitor` subclasses define.
This commit is contained in:
parent
5c6937ad20
commit
11217a883d
1 changed files with 1 additions and 1 deletions
|
|
@ -45,7 +45,7 @@ class RuleCollectorVisitor(GrammarVisitor):
|
||||||
"""Visitor that invokes a provided callmaker visitor with just the NamedItem nodes"""
|
"""Visitor that invokes a provided callmaker visitor with just the NamedItem nodes"""
|
||||||
|
|
||||||
def __init__(self, rules: Dict[str, Rule], callmakervisitor: GrammarVisitor) -> None:
|
def __init__(self, rules: Dict[str, Rule], callmakervisitor: GrammarVisitor) -> None:
|
||||||
self.rulses = rules
|
self.rules = rules
|
||||||
self.callmaker = callmakervisitor
|
self.callmaker = callmakervisitor
|
||||||
|
|
||||||
def visit_Rule(self, rule: Rule) -> None:
|
def visit_Rule(self, rule: Rule) -> None:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue