def copy(self):
        """Returns a new instance which identical to this instance."""
        if self._pre_computed_hash is None:
            temp = ssdeep(buf="")
        else:
            temp = ssdeep(hash=hash)
        libssdeep_wrapper.fuzzy_free(temp._state)
        temp._state = libssdeep_wrapper.fuzzy_clone(self._state)
        temp._updatable = self._updatable
        temp._pre_computed_hash = self._pre_computed_hash
        return temp
def copy ( self ) : if self . _pre_computed_hash is None : temp = ssdeep ( buf = "" ) else : temp = ssdeep ( hash = hash ) libssdeep_wrapper . fuzzy_free ( temp . _state ) temp . _state = libssdeep_wrapper . fuzzy_clone ( self . _state ) temp . _updatable = self . _updatable temp . _pre_computed_hash = self . _pre_computed_hash return temp
Returns a new instance which identical to this instance.