def _removeHandlerRef(wr):
 if (_acquireLock is not None):
  _acquireLock()
  try:
   if (wr in _handlerList):
    _handlerList.remove(wr)
  finally:
   _releaseLock()

def _removeHandlerRef ( wr ) : if ( _acquireLock is not None ) : _acquireLock ( ) try : if ( wr in _handlerList ) : _handlerList . remove ( wr ) finally : _releaseLock ( )
remove a handler reference from the internal cleanup list .