Przeglądaj źródła

Make LexerThread inherit from object

tags/gm/2021-09-23T00Z/github.com--lark-parser-lark/0.11.3
Gary Geng 3 lat temu
rodzic
commit
6d6c751a79
1 zmienionych plików z 1 dodań i 1 usunięć
  1. +1
    -1
      lark/lexer.py

+ 1
- 1
lark/lexer.py Wyświetl plik

@@ -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):


Ładowanie…
Anuluj
Zapisz