mirror of
https://github.com/python/cpython.git
synced 2025-10-28 09:10:36 +00:00
[3.6] bpo-31457: Make the LoggerAdapter.manager property settable (GH-4042) (#4043)
Due to a bug in the initial fix, the setter was in fact creating a different
property. This is now fixed.
(cherry picked from commit 0b6a118a45)
This commit is contained in:
parent
7bbbc6afa4
commit
537ed75291
3 changed files with 16 additions and 2 deletions
|
|
@ -1715,7 +1715,7 @@ class LoggerAdapter(object):
|
|||
return self.logger.manager
|
||||
|
||||
@manager.setter
|
||||
def set_manager(self, value):
|
||||
def manager(self, value):
|
||||
self.logger.manager = value
|
||||
|
||||
def __repr__(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue