summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfgang Rohdewald <wolfgang@rohdewald.de>2016-08-13 06:53:05 (GMT)
committerWolfgang Rohdewald <wolfgang@rohdewald.de>2016-08-24 11:47:04 (GMT)
commita15cb98099e47c5e84f7e49fd56474c465a31e86 (patch)
tree15868a8e10661d0e175e0e6f86c302ef8b8bb626
parent8e5a993794e34097104bfb9810a162c34f2044e9 (diff)
Hand: make debug output more similar for Py2/Py3
-rw-r--r--src/hand.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/hand.py b/src/hand.py
index 6da81af..ba8e8fb 100644
--- a/src/hand.py
+++ b/src/hand.py
@@ -520,7 +520,9 @@ class Hand(object):
for rule in self.ruleset.mjRules:
cand = rule.winningTileCandidates(self)
if Debug.hand and cand:
- self.debug(fmt('callingHands found {cand} for {rule}'))
+ # Py2 and Py3 show sets differently
+ candis = ''.join(str(x) for x in sorted(cand)) # pylint: disable=unused-variable
+ self.debug(fmt('callingHands found {candis} for {rule}'))
candidates.extend(x.concealed for x in cand)
# FIXME: we must differentiate between last Tile exposed or concealed.
# example: