summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfgang Rohdewald <wolfgang@rohdewald.de>2015-11-27 16:24:31 (GMT)
committerWolfgang Rohdewald <wolfgang@rohdewald.de>2016-08-25 06:41:36 (GMT)
commitb6f1e2e3f7ca1dcdd8190d1c24e966d6ca1f0b2e (patch)
tree46eb8a9148f054c5ae3e8914e1a44c1250be9e2b
parentd0336c04dfe28216753ca52911ab7ed4cf804a45 (diff)
Hand.__new__ does not output debug info anymore
-rw-r--r--src/hand.py8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/hand.py b/src/hand.py
index 2c1d865..df03dcd 100644
--- a/src/hand.py
+++ b/src/hand.py
@@ -75,14 +75,6 @@ class Hand(object):
if cacheKey in cache:
result = cache[cacheKey]
player.cacheHits += 1
- if Debug.hand:
- result._player = ( # pylint: disable=protected-access
- weakref.ref(player))
- result.debug(
- fmt(
- '{callers}: cached Hand({id(result)} {string}) '
- '{result.lenOffset} {id(prevHand)}',
- callers=callers(10, exclude=['__init__'])))
return result
player.cacheMisses += 1
result = object.__new__(cls)