Ver a proveniência

Make LexerThread inherit from object

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

+ 1
- 1
lark/lexer.py Ver ficheiro

@@ -470,7 +470,7 @@ class ContextualLexer(Lexer):
except UnexpectedCharacters:
raise e # Raise the original UnexpectedCharacters. The root lexer raises it with the wrong expected set.

class LexerThread:
class LexerThread(object):
"""A thread that ties a lexer instance and a lexer state, to be used by the parser"""

def __init__(self, lexer, text):


Carregando…
Cancelar
Guardar