parameters: (wr)
docstring: Remove a handler reference from the internal cleanup list.
docstring_summary: Remove a handler reference from the internal cleanup list.
docstring_tokens: Remove a handler reference from the internal cleanup list .
function: def _removeHandlerRef(wr):
      """
      Remove a handler reference from the internal cleanup list.
      """
      # This function can be called during module teardown, when globals are
      # set to None. If _acquireLock is None, assume this is the case and do
      # nothing.
      if _acquireLock is not None:
          _acquireLock()
          try:
              if wr in _handlerList:
                  _handlerList.remove(wr)
          finally:
              _releaseLock()
function_tokens: def _removeHandlerRef ( wr ) : # This function can be called during module teardown, when globals are # set to None. If _acquireLock is None, assume this is the case and do # nothing. if _acquireLock is not None : _acquireLock ( ) try : if wr in _handlerList : _handlerList . remove ( wr ) finally : _releaseLock ( )