Browse Source

protect under __debug__

David Rose 19 years ago
parent
commit
10be9cdfd4
1 changed files with 2 additions and 1 deletions
  1. 2 1
      direct/src/distributed/DoInterestManager.py

+ 2 - 1
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