summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfgang Rohdewald <wolfgang@rohdewald.de>2015-11-27 07:29:21 (GMT)
committerWolfgang Rohdewald <wolfgang@rohdewald.de>2016-08-25 06:41:35 (GMT)
commit427ace1cc7aa8dbe03e81adc7de7fe34db494c6f (patch)
treeca66e8cb9ab715a9d1218153531378c3b8bbd7f3
parentd4d4c8e7b45afeb6f0433a1c90ec51df4c6c6d43 (diff)
Hand: last debug output about fixed hand shows resulting hand, not its input string
-rw-r--r--src/hand.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/hand.py b/src/hand.py
index 8ec85ee..f67980e 100644
--- a/src/hand.py
+++ b/src/hand.py
@@ -138,11 +138,12 @@ class Hand(object):
self.__won = False
self.__score = Score()
finally:
+ self._fixed = True
if Debug.hand:
+ _ = str(self)
self.debug(fmt(
- 'Fixing Hand({id(self)}, {string}, '
+ 'Fixing Hand({id(self)}, {_}, '
'{self.won}, {self.score}'))
- self._fixed = True
def __parseString(self, inString):
"""parse the string passed to Hand()"""