projects
/
gem5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Update to ply 2.3
[gem5.git]
/
ext
/
ply
/
test
/
lex_dup1.py
diff --git
a/ext/ply/test/lex_dup1.py
b/ext/ply/test/lex_dup1.py
index 88bbe00e92ecbac53aaaae2b6883e6666e2980e7..68f80925b16c3bcdfb871c95328026e915acf4c1 100644
(file)
--- a/
ext/ply/test/lex_dup1.py
+++ b/
ext/ply/test/lex_dup1.py
@@
-2,7
+2,10
@@
#
# Duplicated rule specifiers
-import lex
+import sys
+sys.path.insert(0,"..")
+
+import ply.lex as lex
tokens = [
"PLUS",
@@
-19,7
+22,6
@@
t_NUMBER = r'\d+'
def t_error(t):
pass
-import sys
sys.tracebacklimit = 0
lex.lex()