def writelines(self, lines): self.data = self.data + string.joinfields( lines, '\r\n' ) + '\r\n' self.check_data()