[Python-checkins] Delete outdated comment in logging module (#31117)
JelleZijlstra
webhook-mailer at python.org
Mon May 2 18:29:13 EDT 2022
https://github.com/python/cpython/commit/5e9323a54724079796688425dd32f2683f81b56f
commit: 5e9323a54724079796688425dd32f2683f81b56f
branch: main
author: Thomas Miedema <thomasmiedema at gmail.com>
committer: JelleZijlstra <jelle.zijlstra at gmail.com>
date: 2022-05-02T16:29:03-06:00
summary:
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 at gmail.com>
files:
M Lib/logging/__init__.py
diff --git a/Lib/logging/__init__.py b/Lib/logging/__init__.py
index 432fefcb5b314..79e4b7d09bfa4 100644
--- a/Lib/logging/__init__.py
+++ b/Lib/logging/__init__.py
@@ -1777,8 +1777,6 @@ def __repr__(self):
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')
More information about the Python-checkins
mailing list