summaryrefslogtreecommitdiff
path: root/Demos
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2014-09-17 14:59:22 +0200
committerStefan Behnel <stefan_ml@behnel.de>2014-09-17 14:59:22 +0200
commit69a3cc3583bfb075ddaa7a3204d24ee8de7753f4 (patch)
tree5ff8372c13bbe7793ac4836540a7094e83e56a21 /Demos
parent01529c0c96b2b0334f3870173c5369f1adbd097a (diff)
downloadcython-69a3cc3583bfb075ddaa7a3204d24ee8de7753f4.tar.gz
fix new hexiom2 benchmark in Py3
Diffstat (limited to 'Demos')
-rw-r--r--Demos/benchmarks/hexiom2.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Demos/benchmarks/hexiom2.py b/Demos/benchmarks/hexiom2.py
index eb070203b..f6b0dd26b 100644
--- a/Demos/benchmarks/hexiom2.py
+++ b/Demos/benchmarks/hexiom2.py
@@ -343,7 +343,7 @@ def print_pos(pos, output):
pos2 = (x, y)
id = hex.get_by_pos(pos2).id
if done.already_done(id):
- c = unicode(done[id][0]) if done[id][0] != EMPTY else u"."
+ c = str(done[id][0]) if done[id][0] != EMPTY else u"."
else:
c = u"?"
print(u"%s " % c, end=u"", file=output)
@@ -355,7 +355,7 @@ def print_pos(pos, output):
pos2 = (x, ry)
id = hex.get_by_pos(pos2).id
if done.already_done(id):
- c = unicode(done[id][0]) if done[id][0] != EMPTY else (u".")
+ c = str(done[id][0]) if done[id][0] != EMPTY else (u".")
else:
c = u"?"
print(u"%s " % c, end=u"", file=output)