def jellyFor(self, jellier):
        """
        @see: L{twisted.spread.interfaces.IJellyable.jellyFor}
        """
        sxp = jellier.prepare(self)
        sxp.extend([
            qual(self.__class__).encode('utf-8'),
            jellier.jelly(self.getStateFor(jellier))])
        return jellier.preserve(self, sxp)

        @see: L{twisted.spread.interfaces.IJellyable.jellyFor}
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/spread/jelly.py