summaryrefslogtreecommitdiff
path: root/example/ansic
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 /example/ansic
parentc66982f8e7dc7de7bbb73c1e40699fd22aef5eac (diff)
downloadply-ca5170e19a22acc8c960c1e2d60ecf353a197057.tar.gz
Python 2.6/3.0 compatibility changes
Diffstat (limited to 'example/ansic')
-rw-r--r--example/ansic/clex.py2
-rw-r--r--example/ansic/cparse.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/example/ansic/clex.py b/example/ansic/clex.py
index 7ec6d32..37fdd8e 100644
--- a/example/ansic/clex.py
+++ b/example/ansic/clex.py
@@ -151,7 +151,7 @@ def t_preprocessor(t):
t.lexer.lineno += 1
def t_error(t):
- print "Illegal character %s" % repr(t.value[0])
+ print("Illegal character %s" % repr(t.value[0]))
t.lexer.skip(1)
lexer = lex.lex(optimize=1)
diff --git a/example/ansic/cparse.py b/example/ansic/cparse.py
index 5488cb9..c9b9164 100644
--- a/example/ansic/cparse.py
+++ b/example/ansic/cparse.py
@@ -849,7 +849,7 @@ def p_empty(t):
pass
def p_error(t):
- print "Whoa. We're hosed"
+ print("Whoa. We're hosed")
import profile
# Build the grammar