Skip to content

Commit

Permalink
Remove redundant
Browse files Browse the repository at this point in the history
  • Loading branch information
Derek-Wds committed Apr 30, 2021
1 parent 51b649e commit 5eb9dff
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions qlib/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ def __new__(cls, name, bases, dict):
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)


Expand All @@ -31,9 +30,6 @@ def __init__(self, module_name):
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)
Expand Down

0 comments on commit 5eb9dff

Please sign in to comment.