From c23b138ed72d794521b19ff7d8076b32b0b7bf46 Mon Sep 17 00:00:00 2001 From: Diego Roversi Date: Sun, 8 Sep 2019 22:05:57 +0200 Subject: 2to3 --- bubbob/test_rnglevel.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'bubbob/test_rnglevel.py') diff --git a/bubbob/test_rnglevel.py b/bubbob/test_rnglevel.py index 6b65514..fa743e1 100644 --- a/bubbob/test_rnglevel.py +++ b/bubbob/test_rnglevel.py @@ -31,12 +31,12 @@ while idx < len(sys.argv): if arg == '-seed': arg = sys.argv[idx] idx += 1 - print "Using seed: " + arg + "\n" + print("Using seed: " + arg + "\n") random.seed(arg) def printlvl(level): if show_lvl: - print "\n\n" + print("\n\n") for y in range(level.HEIGHT): str = "" if show_lvl & 1: @@ -45,12 +45,12 @@ def printlvl(level): if str: str += " | " str += level.winds[y] - print str + print(str) for i in range(n_lvls): - print '%4d:' % i, + print('%4d:' % i, end=' ') d = {'__name__': 'RandomLevels'} - execfile('levels/RandomLevels.py', d) + exec(compile(open('levels/RandomLevels.py', "rb").read(), 'levels/RandomLevels.py', 'exec'), d) for i, Lvl in enumerate(d['GenerateLevels']()): level = Lvl(i) printlvl(level) @@ -60,5 +60,5 @@ for i in range(n_lvls): break else: for line in level.walls: - print line + print(line) raise AssertionError("full height wall in column %d" % x) -- cgit v1.2.3