Logo Search packages:      
Sourcecode: nautilus-image-manipulator version File versions  Download package

def nautilus_image_manipulator::upload::poster::encode::MultipartParam::encode (   self,
Returns the string encoding of this parameter

Definition at line 208 of file encode.py.

        """Returns the string encoding of this parameter"""
        if self.value is None:
            value = self.fileobj.read()
            value = self.value

        if re.search("^--%s$" % re.escape(boundary), value, re.M):
            raise ValueError("boundary found in encoded string")

        return "%s%s\r\n" % (self.encode_hdr(boundary), value)

Generated by  Doxygen 1.6.0   Back to index