summaryrefslogtreecommitdiff
path: root/src/examples/nested.py
diff options
context:
space:
mode:
authorptmcg <ptmcg@9bf210a0-9d2d-494c-87cf-cfb32e7dff7b>2012-11-23 08:54:10 +0000
committerptmcg <ptmcg@9bf210a0-9d2d-494c-87cf-cfb32e7dff7b>2012-11-23 08:54:10 +0000
commit551a3a8c1f617f2bb98345af5b606e7c1b84fee8 (patch)
tree734ae210c20a98f01fe029f7e6eeb7a93b4617fb /src/examples/nested.py
parent4606aecb99379afb1e406e8ac60c97e86a514319 (diff)
downloadpyparsing-551a3a8c1f617f2bb98345af5b606e7c1b84fee8.tar.gz
Clean up examples to be Python 3 compatible
git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@246 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
Diffstat (limited to 'src/examples/nested.py')
-rw-r--r--src/examples/nested.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/examples/nested.py b/src/examples/nested.py
index bd529f5..24cf2f4 100644
--- a/src/examples/nested.py
+++ b/src/examples/nested.py
@@ -22,9 +22,9 @@ data = """
# use {}'s for nested lists
nestedItems = nestedExpr("{", "}")
-print( (nestedItems+stringEnd).parseString(data).asList() )
+print(( (nestedItems+stringEnd).parseString(data).asList() ))
# use default delimiters of ()'s
mathExpr = nestedExpr()
-print( mathExpr.parseString( "((( ax + by)*C) *(Z | (E^F) & D))") )
+print(( mathExpr.parseString( "((( ax + by)*C) *(Z | (E^F) & D))") ))