We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d30ade commit 5e9323aCopy full SHA for 5e9323a
Lib/logging/__init__.py
@@ -1777,8 +1777,6 @@ def __repr__(self):
1777
return '<%s %s (%s)>' % (self.__class__.__name__, self.name, level)
1778
1779
def __reduce__(self):
1780
- # In general, only the root logger will not be accessible via its name.
1781
- # However, the root logger's class has its own __reduce__ method.
1782
if getLogger(self.name) is not self:
1783
import pickle
1784
raise pickle.PicklingError('logger cannot be pickled')
0 commit comments