(self)
Tidy up any resources used by the handler.

        This version removes the handler from an internal map of handlers,
        _handlers, which is used for handler lookup by name. Subclasses
        should ensure that this gets called from overridden close()
        methods.
Tidy up any resources used by the handler.
Tidy up any resources used by the handler .
def close(self):
        """
        Tidy up any resources used by the handler.

        This version removes the handler from an internal map of handlers,
        _handlers, which is used for handler lookup by name. Subclasses
        should ensure that this gets called from overridden close()
        methods.
        """
        #get the module data lock, as we're updating a shared structure.
        _acquireLock()
        try:    #unlikely to raise an exception, but you never know...
            if self._name and self._name in _handlers:
                del _handlers[self._name]
        finally:
            _releaseLock()
def close ( self ) : #get the module data lock, as we're updating a shared structure. _acquireLock ( ) try : #unlikely to raise an exception, but you never know... if self . _name and self . _name in _handlers : del _handlers [ self . _name ] finally : _releaseLock ( )