summaryrefslogtreecommitdiff
path: root/test/yacc_dup.py
diff options
context:
space:
mode:
authorDavid Beazley <dave@dabeaz.com>2008-11-27 19:36:14 +0000
committerDavid Beazley <dave@dabeaz.com>2008-11-27 19:36:14 +0000
commitca5170e19a22acc8c960c1e2d60ecf353a197057 (patch)
tree3d18cafc75d61f3bc5412338db061175e796a212 /test/yacc_dup.py
parentc66982f8e7dc7de7bbb73c1e40699fd22aef5eac (diff)
downloadply-ca5170e19a22acc8c960c1e2d60ecf353a197057.tar.gz
Python 2.6/3.0 compatibility changes
Diffstat (limited to 'test/yacc_dup.py')
-rw-r--r--test/yacc_dup.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/yacc_dup.py b/test/yacc_dup.py
index 1d2fa7d..309ba32 100644
--- a/test/yacc_dup.py
+++ b/test/yacc_dup.py
@@ -26,7 +26,7 @@ def p_statement(t):
def p_statement(t):
'statement : expression'
- print t[1]
+ print(t[1])
def p_expression_binop(t):
'''expression : expression PLUS expression
@@ -55,11 +55,11 @@ def p_expression_name(t):
try:
t[0] = names[t[1]]
except LookupError:
- print "Undefined name '%s'" % t[1]
+ print("Undefined name '%s'" % t[1])
t[0] = 0
def p_error(t):
- print "Syntax error at '%s'" % t.value
+ print("Syntax error at '%s'" % t.value)
yacc.yacc()