MCPcopy Index your code
hub / github.com/python/cpython / __reduce__

Method __reduce__

Lib/logging/__init__.py:1826–1830  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1824 return '<%s %s (%s)>' % (self.__class__.__name__, self.name, level)
1825
1826 def __reduce__(self):
1827 if getLogger(self.name) is not self:
1828 import pickle
1829 raise pickle.PicklingError('logger cannot be pickled')
1830 return getLogger, (self.name,)
1831
1832
1833class RootLogger(Logger):

Callers

nothing calls this directly

Calls 1

getLoggerFunction · 0.85

Tested by

no test coverage detected