summaryrefslogtreecommitdiff
path: root/Examples/python/multimap
diff options
context:
space:
mode:
authorWilliam S Fulton <wsf@fultondesigns.co.uk>2020-08-15 16:46:01 +0100
committerWilliam S Fulton <wsf@fultondesigns.co.uk>2020-08-15 16:46:01 +0100
commit89bee6a7fa2236da8f10bf200abdc4892d4085b8 (patch)
treeb4a6efa27ad38a2e7146a91b6832b80631c0c677 /Examples/python/multimap
parent2af35cb4ff80f352aa2f8f2b02bfd31000db4188 (diff)
downloadswig-89bee6a7fa2236da8f10bf200abdc4892d4085b8.tar.gz
Modify examples to be both Python 2 and 3 compatible
For removing dependency on 2to3
Diffstat (limited to 'Examples/python/multimap')
-rw-r--r--Examples/python/multimap/runme.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Examples/python/multimap/runme.py b/Examples/python/multimap/runme.py
index ad693b73a..e24f54ee1 100644
--- a/Examples/python/multimap/runme.py
+++ b/Examples/python/multimap/runme.py
@@ -7,14 +7,14 @@ import example
x = 42
y = 105
g = example.gcd(x, y)
-print "The gcd of %d and %d is %d" % (x, y, g)
+print("The gcd of %d and %d is %d" % (x, y, g))
# Call the gcdmain() function
example.gcdmain(["gcdmain", "42", "105"])
# Call the count function
-print example.count("Hello World", "l")
+print(example.count("Hello World", "l"))
# Call the capitalize function
-print example.capitalize("hello world")
+print(example.capitalize("hello world"))