mirror of
https://github.com/davidhalter/parso.git
synced 2026-02-10 20:01:28 +08:00
Remove nonterminal2number and number2nonterminal, they are no longer used
This commit is contained in:
@@ -186,8 +186,8 @@ class Grammar(object):
|
||||
return normalizer.issues
|
||||
|
||||
def __repr__(self):
|
||||
labels = self._pgen_grammar.number2nonterminal.values()
|
||||
txt = ' '.join(list(labels)[:3]) + ' ...'
|
||||
nonterminals = self._pgen_grammar._nonterminal_to_dfas.keys()
|
||||
txt = ' '.join(list(nonterminals)[:3]) + ' ...'
|
||||
return '<%s:%s>' % (self.__class__.__name__, txt)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user