Commit b033604a authored by Fabrice  ALLAIN's avatar Fabrice ALLAIN
Browse files

refactor: remove duplicated lines in ariabase

parent 6c209afa
......@@ -229,14 +229,6 @@ class AriaBaseClass:
if self.__class__.display_debug:
logging.getLogger().setLevel(logging.DEBUG)
def __getstate__(self):
"""
Remove logger attribute in order to pickle every ariabase object instance
"""
d = dict(self.__dict__)
del d['logger']
return d
def __setstate__(self, d):
d['logger'] = logging.getLogger(self.__module__)
self.__dict__.update(d)
......@@ -253,10 +245,6 @@ class AriaBaseClass:
del d['logger']
return d
def __setstate__(self, d):
d['logger'] = logging.getLogger(self.__module__)
self.__dict__.update(d)
@staticmethod
def get_version_string():
return AriaBaseClass.VERSION_FORMAT % (
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment