瀏覽代碼

Make LexerThread inherit from object

tags/gm/2021-09-23T00Z/github.com--lark-parser-lark/0.11.3
Gary Geng 3 年之前
父節點
當前提交
6d6c751a79
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      lark/lexer.py

+ 1
- 1
lark/lexer.py 查看文件

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


Loading…
取消
儲存