From 49ff3488fed0d2e065872b16fede7b74fb4cc9e5 Mon Sep 17 00:00:00 2001 From: Shlomi Fish Date: Wed, 17 May 2017 21:27:04 +0300 Subject: [PATCH] 2to3 on pysollib/games/[a-p]*.py --- pysollib/games/pasdedeux.py | 3 ++- pysollib/games/picturegallery.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pysollib/games/pasdedeux.py b/pysollib/games/pasdedeux.py index a16335d4..d6a8831b 100644 --- a/pysollib/games/pasdedeux.py +++ b/pysollib/games/pasdedeux.py @@ -64,7 +64,8 @@ class PasDeDeux_Hint(AbstractHint): for r in rows: r1_d = self.getDistance(r, r.cards[-1]) column, row = r.id % 13, r.id / 13 - stack_ids = range(column, 52, 13) + range(13*row, 13*row+13) + stack_ids = list(range(column, 52, 13)) + \ + list(range(13*row, 13*row+13)) for i in stack_ids: t = self.game.s.rows[i] if t is r: diff --git a/pysollib/games/picturegallery.py b/pysollib/games/picturegallery.py index 3edee789..57bc5230 100644 --- a/pysollib/games/picturegallery.py +++ b/pysollib/games/picturegallery.py @@ -574,7 +574,7 @@ registerGame(GameInfo(7, PictureGallery, "Picture Gallery", altnames=("Die Bildgallerie", "Mod-3"))) registerGame(GameInfo(397, GreatWheel, "Great Wheel", GI.GT_2DECK_TYPE, 2, 0, GI.SL_BALANCED, - ranks=range(12) # without Kings + ranks=list(range(12)) # without Kings )) registerGame(GameInfo(398, MountOlympus, "Mount Olympus", GI.GT_2DECK_TYPE, 2, 0, GI.SL_BALANCED))