def encode(self, flash):
        return pickle.dumps(flash, pickle.HIGHEST_PROTOCOL)
Encodes the given *flash* as a Pickle dump string.
dataset/ETHPy150Open danielfm/django-flash/src/djangoflash/codec/pickle_impl.py/CodecClass.encode