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

Update aria/core/ariabase.py

parent 53ce0e21
......@@ -228,13 +228,17 @@ class AriaBaseClass:
if name is not None:
self._set_name(name)
def __getstate__(self):
"""
Remove logger attribute in order to pickle every ariabase object instance
"""
d = dict(self.__dict__)
del d['logger']
return d
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)
def get_version_string(self):
return self.VERSION_FORMAT % (self.VERSION, self.VERSION_RELEASE)
......
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