mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Delete outdated comment in logging module (#31117)
The root logger is now accessible via its name, see https://github.com/python/cpython/pull/15077 Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
This commit is contained in:
parent
2d30adee72
commit
5e9323a547
1 changed files with 0 additions and 2 deletions
|
@ -1777,8 +1777,6 @@ class Logger(Filterer):
|
|||
return '<%s %s (%s)>' % (self.__class__.__name__, self.name, level)
|
||||
|
||||
def __reduce__(self):
|
||||
# In general, only the root logger will not be accessible via its name.
|
||||
# However, the root logger's class has its own __reduce__ method.
|
||||
if getLogger(self.name) is not self:
|
||||
import pickle
|
||||
raise pickle.PicklingError('logger cannot be pickled')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue