mirror of
https://github.com/python/cpython.git
synced 2025-12-23 09:19:18 +00:00
[3.13] gh-138257: Fix internal RuleCollectorVisitor attribute name (GH-138208) (#138260)
gh-138257: Fix internal `RuleCollectorVisitor` attribute name (GH-138208)
The internal `RuleCollectorVisitor` class had an attribute named "rulses"
instead of "rules" that other `GrammarVisitor` subclasses define.
(cherry picked from commit 11217a883d)
Co-authored-by: chemelnucfin <3982092+chemelnucfin@users.noreply.github.com>
This commit is contained in:
parent
e93cacb8cf
commit
573589cf75
1 changed files with 1 additions and 1 deletions
|
|
@ -44,7 +44,7 @@ class RuleCollectorVisitor(GrammarVisitor):
|
|||
"""Visitor that invokes a provieded callmaker visitor with just the NamedItem nodes"""
|
||||
|
||||
def __init__(self, rules: Dict[str, Rule], callmakervisitor: GrammarVisitor) -> None:
|
||||
self.rulses = rules
|
||||
self.rules = rules
|
||||
self.callmaker = callmakervisitor
|
||||
|
||||
def visit_Rule(self, rule: Rule) -> None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue