Skip to content

Commit b7ef2dc

Browse files
douglas-raillard-armmarcbonnici
authored andcommitted
devlib.target: Fix AndroidTarget unpickle
Fix __setstate__ to call super().__setstate__ in order to handle the generic part of the deserialization.
1 parent 492284f commit b7ef2dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

devlib/target.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1798,7 +1798,7 @@ def __getstate__(self):
17981798
}
17991799

18001800
def __setstate__(self, dct):
1801-
self.__dict__.update(dct)
1801+
super().__setstate__(dct)
18021802
self._init_logcat_lock()
18031803

18041804
@asyn.asyncf

0 commit comments

Comments
 (0)