Ver a proveniência

make LexerState inherit from object

tags/gm/2021-09-23T00Z/github.com--lark-parser-lark/0.11.3
Gary Geng há 3 anos
ascendente
cometimento
38ab4232ae
1 ficheiros alterados com 1 adições e 1 eliminações
  1. +1
    -1
      lark/lexer.py

+ 1
- 1
lark/lexer.py Ver ficheiro

@@ -404,7 +404,7 @@ class TraditionalLexer(Lexer):
raise EOFError(self)


class LexerState:
class LexerState(object):
__slots__ = 'text', 'line_ctr', 'last_token'

def __init__(self, text, line_ctr, last_token=None):


Carregando…
Cancelar
Guardar