Home
last modified time | relevance | path

Searched refs:_handlers (Results 1 - 4 of 4) sorted by relevance

/third_party/python/Lib/test/libregrtest/
H A Dsave_env.py56 'logging._handlers', 'logging._handlerList', 'sys.gettrace',
196 # _handlers is a WeakValueDictionary
197 return id(logging._handlers), logging._handlers, logging._handlers.copy()
/third_party/python/Lib/logging/
H A Dconfig.py89 # Handlers add themselves to logging._handlers
284 logging._handlers.clear()
516 if name not in logging._handlers:
521 handler = logging._handlers[name]
H A D__init__.py222 #shared dictionary _handlers, it needs to acquire the lock. But if configuring,
842 _handlers = weakref.WeakValueDictionary() #map of handler names to handlers variable
902 if self._name in _handlers:
903 del _handlers[self._name]
906 _handlers[name] = self
1003 _handlers, which is used for handler lookup by name. Subclasses
1011 if self._name and self._name in _handlers:
1012 del _handlers[self._name]
/third_party/python/Lib/test/
H A Dtest_logging.py95 self.saved_handlers = logging._handlers.copy()
145 logging._handlers.clear()
146 logging._handlers.update(self.saved_handlers)
699 self.assertEqual(len(logging._handlers), 0)
703 self.assertGreater(len(logging._handlers), 0)
3253 h = logging._handlers['hand1']
4661 self.saved_handlers = logging._handlers.copy()
4675 logging._handlers.clear()
4676 logging._handlers.update(self.saved_handlers)

Completed in 12 milliseconds