diff options
author | ptmcg <ptmcg@9bf210a0-9d2d-494c-87cf-cfb32e7dff7b> | 2012-11-23 08:54:10 +0000 |
---|---|---|
committer | ptmcg <ptmcg@9bf210a0-9d2d-494c-87cf-cfb32e7dff7b> | 2012-11-23 08:54:10 +0000 |
commit | 551a3a8c1f617f2bb98345af5b606e7c1b84fee8 (patch) | |
tree | 734ae210c20a98f01fe029f7e6eeb7a93b4617fb /src/examples/romanNumerals.py | |
parent | 4606aecb99379afb1e406e8ac60c97e86a514319 (diff) | |
download | pyparsing-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/romanNumerals.py')
-rw-r--r-- | src/examples/romanNumerals.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/examples/romanNumerals.py b/src/examples/romanNumerals.py index 1561ac8..03605be 100644 --- a/src/examples/romanNumerals.py +++ b/src/examples/romanNumerals.py @@ -56,13 +56,13 @@ tests = " ".join([makeRomanNumeral(i) for i in range(1,5000+1)]) expected = 1
for t,s,e in romanNumeral.scanString(tests):
if t[0] != expected:
- print "==>",
- print t,tests[s:e]
+ print("==>", end=' ')
+ print(t,tests[s:e])
expected += 1
-print
+print()
def test(rn):
- print rn,romanNumeral.parseString(rn)
+ print(rn,romanNumeral.parseString(rn))
test("XVI")
test("XXXIX")
test("XIV")
|