Home
last modified time | relevance | path

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

/third_party/python/Lib/test/libregrtest/
Dsave_env.py197 return id(logging._handlers), logging._handlers, logging._handlers.copy()
/third_party/python/Lib/logging/
D__init__.py833 _handlers = weakref.WeakValueDictionary() #map of handler names to handlers variable
892 if self._name in _handlers:
893 del _handlers[self._name]
896 _handlers[name] = self
1001 if self._name and self._name in _handlers:
1002 del _handlers[self._name]
Dconfig.py274 logging._handlers.clear()
508 if name not in logging._handlers:
513 handler = logging._handlers[name]
/third_party/python/Lib/test/
Dtest_logging.py94 self.saved_handlers = logging._handlers.copy()
144 logging._handlers.clear()
145 logging._handlers.update(self.saved_handlers)
693 self.assertEqual(len(logging._handlers), 0)
697 self.assertGreater(len(logging._handlers), 0)
3192 h = logging._handlers['hand1']
4509 self.saved_handlers = logging._handlers.copy()
4523 logging._handlers.clear()
4524 logging._handlers.update(self.saved_handlers)