def read(self, blocksize):
        """generator function to return multipart/form-data representation
        of parameters"""
        if self.param_iter is not None:
            try:
                return self.param_iter.next()
            except StopIteration:
                self.param = None
                self.param_iter = None

        if self.i is None:
            return None
        elif self.i >= len(self.params):
            self.param_iter = None
            self.param = None
            self.i = None
            return "--%s--\r\n" % self.boundary

        self.param = self.params[self.i]
        self.param_iter = self.param.iter_encode(self.boundary, blocksize)
        self.i += 1
        return self.read(blocksize)
dataset/ETHPy150Open turbulenz/turbulenz_local/turbulenz_local/lib/deploy.py/MultipartReader.read/original