From 10be9cdfd419039905d660cf3656c14c64d0aff6 Mon Sep 17 00:00:00 2001 From: David Rose Date: Thu, 2 Nov 2006 20:05:24 +0000 Subject: [PATCH] protect under __debug__ --- direct/src/distributed/DoInterestManager.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/direct/src/distributed/DoInterestManager.py b/direct/src/distributed/DoInterestManager.py index d8ea3d8d64..4c82bf6d34 100755 --- a/direct/src/distributed/DoInterestManager.py +++ b/direct/src/distributed/DoInterestManager.py @@ -127,7 +127,8 @@ class DoInterestManager(DirectObject.DirectObject): DoInterestManager._interests.clear() self._outstandingScopes = set() self._completeEventCount = ScratchPad(num=0) - self._addDebugInterestHistory("RESET", "", 0, 0, 0, []) + if __debug__: + self._addDebugInterestHistory("RESET", "", 0, 0, 0, []) def isValidInterestHandle(self, handle): # pass in a handle (or anything else) and this will return true if it is