diff options
Diffstat (limited to 'example/yply/ylex.py')
-rw-r--r-- | example/yply/ylex.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/example/yply/ylex.py b/example/yply/ylex.py index a3efe8e..16410e2 100644 --- a/example/yply/ylex.py +++ b/example/yply/ylex.py @@ -109,8 +109,8 @@ def t_code_error(t): def t_error(t): - print "%d: Illegal character '%s'" % (t.lexer.lineno, t.value[0]) - print t.value + print("%d: Illegal character '%s'" % (t.lexer.lineno, t.value[0])) + print(t.value) t.lexer.skip(1) lex.lex() |