From b7ef2dc2e03438eae000f702770b39a3233cc74a Mon Sep 17 00:00:00 2001 From: Douglas Raillard Date: Tue, 16 Aug 2022 12:54:11 +0100 Subject: [PATCH] devlib.target: Fix AndroidTarget unpickle Fix __setstate__ to call super().__setstate__ in order to handle the generic part of the deserialization. --- devlib/target.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devlib/target.py b/devlib/target.py index 78930b3..780008a 100644 --- a/devlib/target.py +++ b/devlib/target.py @@ -1798,7 +1798,7 @@ class AndroidTarget(Target): } def __setstate__(self, dct): - self.__dict__.update(dct) + super().__setstate__(dct) self._init_logcat_lock() @asyn.asyncf