Commit a15cb980 authored by Wolfgang Rohdewald's avatar Wolfgang Rohdewald
Browse files

Hand: make debug output more similar for Py2/Py3

parent 8e5a9937
......@@ -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:
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment