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_rule1.py
diff --git
a/ext/ply/test/lex_rule1.py
b/ext/ply/test/lex_rule1.py
index ff3764ea14b988a907bb845e8b079137ecdb2821..e49a15bbad0fabce283d9e769dc9d0c83c3f5b5b 100644
(file)
--- a/
ext/ply/test/lex_rule1.py
+++ b/
ext/ply/test/lex_rule1.py
@@
-2,7
+2,10
@@
#
# Rule defined as some other type
-import lex
+import sys
+sys.path.insert(0,"..")
+
+import ply.lex as lex
tokens = [
"PLUS",
@@
-17,7
+20,6
@@
t_NUMBER = 1
def t_error(t):
pass
-import sys
sys.tracebacklimit = 0
lex.lex()