protect under __debug__

This commit is contained in:
David Rose 2006-11-02 20:05:24 +00:00
parent 26b20ce4ac
commit 10be9cdfd4
1 changed files with 2 additions and 1 deletions

View File

@ -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