def __setstate__(self, state):
        """
        Fix unpickling.
        """
        log_level = state["_log"]
        self._log = logging.getLogger(self.NAME)
        self._log.setLevel(log_level)
        self._asdf = None
        for key in ("_meta", "_source", "_size", "_initial_version"):
            setattr(self, key, state[key])
        self._compression_prefixes = pygtrie.PrefixSet(self.NO_COMPRESSION)
        self._load_tree(state["tree"])
def __setstate__ ( self , state ) : log_level = state [ "_log" ] self . _log = logging . getLogger ( self . NAME ) self . _log . setLevel ( log_level ) self . _asdf = None for key in ( "_meta" , "_source" , "_size" , "_initial_version" ) : setattr ( self , key , state [ key ] ) self . _compression_prefixes = pygtrie . PrefixSet ( self . NO_COMPRESSION ) self . _load_tree ( state [ "tree" ] )
Fix unpickling.