summaryrefslogtreecommitdiff
path: root/example/yply/ylex.py
diff options
context:
space:
mode:
authorAdrian Oboroc <aoboroc@gmail.com>2016-12-16 15:52:33 -0500
committerAdrian Oboroc <aoboroc@gmail.com>2016-12-16 15:52:33 -0500
commitc265bbb0a61a36077f51e9165034c3b50aaa6117 (patch)
tree948486ad62f13242779a12e1e50b0a108143cdf3 /example/yply/ylex.py
parent393cc558722eb892724701c110e7ae4c101c88c3 (diff)
downloadply-c265bbb0a61a36077f51e9165034c3b50aaa6117.tar.gz
Switch print to print() as per PEP 3105
Diffstat (limited to 'example/yply/ylex.py')
-rw-r--r--example/yply/ylex.py4
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()