From 97b1ee072eb2c63b22c12148569ceed9a7b38285 Mon Sep 17 00:00:00 2001 From: Eli Bendersky Date: Mon, 24 Dec 2012 15:15:22 -0800 Subject: Added ply 3.4 to be redistributed with pycparser. This aids with distribution and with tests. --- pycparser/c_lexer.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pycparser/c_lexer.py') diff --git a/pycparser/c_lexer.py b/pycparser/c_lexer.py index 0406af9..7770ac5 100644 --- a/pycparser/c_lexer.py +++ b/pycparser/c_lexer.py @@ -9,8 +9,8 @@ import re import sys -import ply.lex -from ply.lex import TOKEN +from .ply import lex +from .ply.lex import TOKEN class CLexer(object): @@ -54,7 +54,7 @@ class CLexer(object): manual warns against calling lex.lex inside __init__ """ - self.lexer = ply.lex.lex(object=self, **kwargs) + self.lexer = lex.lex(object=self, **kwargs) def reset_lineno(self): """ Resets the internal line number counter of the lexer. -- cgit v1.2.1