1
0
mirror of https://github.com/microsoft/qlib.git synced 2026-06-30 17:41:18 +08:00

Remove redundant

This commit is contained in:
Jactus
2021-04-30 15:28:37 +08:00
parent 51b649ec39
commit 5eb9dfff16

View File

@@ -18,7 +18,6 @@ class MetaLogger(type):
for key in wrapper_dict:
if key not in dict and key != "__reduce__":
dict[key] = wrapper_dict[key]
dict["__doc__"] = logging.Logger.__doc__
return type.__new__(cls, name, bases, dict)
@@ -31,9 +30,6 @@ class QlibLogger(metaclass=MetaLogger):
self.module_name = module_name
self.level = 0
def __reduce__(self):
return (QlibLogger, (self.module_name,))
@property
def logger(self):
logger = logging.getLogger(self.module_name)