diff options
author | Adrian Oboroc <aoboroc@gmail.com> | 2016-12-16 15:52:33 -0500 |
---|---|---|
committer | Adrian Oboroc <aoboroc@gmail.com> | 2016-12-16 15:52:33 -0500 |
commit | c265bbb0a61a36077f51e9165034c3b50aaa6117 (patch) | |
tree | 948486ad62f13242779a12e1e50b0a108143cdf3 /example/yply/ylex.py | |
parent | 393cc558722eb892724701c110e7ae4c101c88c3 (diff) | |
download | ply-c265bbb0a61a36077f51e9165034c3b50aaa6117.tar.gz |
Switch print to print() as per PEP 3105
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() |