diff options
author | Eli Bendersky <eliben@gmail.com> | 2012-12-24 15:15:22 -0800 |
---|---|---|
committer | Eli Bendersky <eliben@gmail.com> | 2012-12-24 15:15:22 -0800 |
commit | 97b1ee072eb2c63b22c12148569ceed9a7b38285 (patch) | |
tree | 79ccfedcabc1ca5a0632e268d77b955689dc7e0f /pycparser/c_lexer.py | |
parent | c1dd88549225de6dba88fc162e856a67a92f9dea (diff) | |
download | pycparser-97b1ee072eb2c63b22c12148569ceed9a7b38285.tar.gz |
Added ply 3.4 to be redistributed with pycparser. This aids with
distribution and with tests.
Diffstat (limited to 'pycparser/c_lexer.py')
-rw-r--r-- | pycparser/c_lexer.py | 6 |
1 files changed, 3 insertions, 3 deletions
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. |