summaryrefslogtreecommitdiff
path: root/src/examples/excelExpr.py
diff options
context:
space:
mode:
authorPaul McGuire <ptmcg@austin.rr.com>2012-11-23 08:54:10 +0000
committerPaul McGuire <ptmcg@austin.rr.com>2012-11-23 08:54:10 +0000
commit774e46526945ea91265734a2dc82d15eed515577 (patch)
tree734ae210c20a98f01fe029f7e6eeb7a93b4617fb /src/examples/excelExpr.py
parent6b12041d4656f4cda910f24acda8d71013166fbd (diff)
downloadpyparsing-git-774e46526945ea91265734a2dc82d15eed515577.tar.gz
Clean up examples to be Python 3 compatible
Diffstat (limited to 'src/examples/excelExpr.py')
-rw-r--r--src/examples/excelExpr.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/examples/excelExpr.py b/src/examples/excelExpr.py
index c759345..0d0c06a 100644
--- a/src/examples/excelExpr.py
+++ b/src/examples/excelExpr.py
@@ -65,8 +65,8 @@ test3 = "=if(Sum(A1:A25)>42,Min(B1:B25), " \
test3a = "=sum(a1:a25,10,min(b1,c2,d3))"
import pprint
-tests = [locals()[t] for t in locals().keys() if t.startswith("test")]
+tests = [locals()[t] for t in list(locals().keys()) if t.startswith("test")]
for test in tests:
- print test
+ print(test)
pprint.pprint( (EQ + expr).parseString(test,parseAll=True).asList() )
- print
+ print()