]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Delete outdated comment in logging module (#31117)
authorThomas Miedema <thomasmiedema@gmail.com>
Mon, 2 May 2022 22:29:03 +0000 (00:29 +0200)
committerGitHub <noreply@github.com>
Mon, 2 May 2022 22:29:03 +0000 (16:29 -0600)
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>
Lib/logging/__init__.py

index 432fefcb5b3141b5b2d6d598cf6523d688fc4cfa..79e4b7d09bfa43c43abcda8719c4f0a4d903d2fa 100644 (file)
@@ -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')