def _set(self, key, value, identity="image"): """ Serializing, prefix wrapper for _set_raw """ if identity == "image": s = serialize_image_file(value) else: s = serialize(value) self._set_raw(add_prefix(key, identity), s)
def _set(self, key, value, identity='image'): """ Serializing, prefix wrapper for _set_raw """ if identity == 'image': s = serialize_image_file(value) else: s = serialize(value) self._set_raw(add_prefix(key, identity), s)