#NEWLINE# def encode( self , value ) : #NEWLINE# #INDENT# 'Encodes a Python ``value`` into Redis bulk.  Every subclass of\n        :class:`Bulk` must implement this method.  By default it raises\n        :exc:`NotImplementedError`.\n\n        :param value: a Python value to encode into Redis bulk\n        :returns: an encoded Redis bulk\n        :rtype: :class:`str`\n        :raises exceptions.TypeError:\n           if the type of a given value is not acceptable by this type\n\n        ' #NEWLINE# cls = type ( self ) #NEWLINE# raise NotImplementedError ( '{0}.{1}.encode() method must be implemented' . format ( cls . __module__ , cls . __name__ ) )