1
0
mirror of https://github.com/ARM-software/devlib.git synced 2025-01-31 02:00:45 +00:00

devlib.target: Fix AndroidTarget unpickle

Fix __setstate__ to call super().__setstate__ in order to handle the
generic part of the deserialization.
This commit is contained in:
Douglas Raillard 2022-08-16 12:54:11 +01:00 committed by Marc Bonnici
parent 492284f46d
commit b7ef2dc2e0

View File

@ -1798,7 +1798,7 @@ class AndroidTarget(Target):
} }
def __setstate__(self, dct): def __setstate__(self, dct):
self.__dict__.update(dct) super().__setstate__(dct)
self._init_logcat_lock() self._init_logcat_lock()
@asyn.asyncf @asyn.asyncf