Reconstitute the state of the object from being pickled. Uses the fact that the instance variable _dynamic_attrs holds attrs that will be wiped and restored on pickle serialization.
(self, state)
| 1471 | return state_dict |
| 1472 | |
| 1473 | def __setstate__(self, state): |
| 1474 | """Reconstitute the state of the object from being pickled. |
| 1475 | |
| 1476 | Uses the fact that the instance variable _dynamic_attrs holds attrs that |
| 1477 | will be wiped and restored on pickle serialization. |
| 1478 | """ |
| 1479 | self.__dict__.update(state) |
| 1480 | self._dynamic_attrs = [] |
| 1481 | self._set_service_methods() |
| 1482 | |
| 1483 | def __enter__(self): |
| 1484 | return self |
nothing calls this directly
no test coverage detected