From c9baf9585a50059189945849dec26a1964cd7bdd Mon Sep 17 00:00:00 2001 From: Roderik Ploszek Date: Sat, 3 Mar 2018 16:50:45 +0100 Subject: [PATCH] Fix integer division --- pysollib/games/mahjongg/mahjongg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pysollib/games/mahjongg/mahjongg.py b/pysollib/games/mahjongg/mahjongg.py index 0546e8c8..837828b7 100644 --- a/pysollib/games/mahjongg/mahjongg.py +++ b/pysollib/games/mahjongg/mahjongg.py @@ -328,7 +328,7 @@ class AbstractMahjonggGame(Game): t = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ' for i in range(1, len(L), 3): n = t.find(L[i]) - level, height = n / 7, n % 7 + 1 + level, height = n // 7, n % 7 + 1 tx = t.find(L[i+1]) ty = t.find(L[i+2]) assert n >= 0 and tx >= 0 and ty >= 0