From 6d6c751a79f4504e51e3d58e46de55794395966d Mon Sep 17 00:00:00 2001 From: Gary Geng Date: Fri, 2 Apr 2021 14:59:59 -0500 Subject: [PATCH] Make LexerThread inherit from object --- lark/lexer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lark/lexer.py b/lark/lexer.py index 7b2fc8f..20775c8 100644 --- a/lark/lexer.py +++ b/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):