def writelines(self, lines):
if self.__closed:<EOL><INDENT>raise OSError()<EOL><DEDENT>for line in lines:<EOL><INDENT>self.write(line)<EOL><DEDENT>
Write a list of lines to the stream. Line separators are not added, so it is usual for each of the lines provided to have a line separator at the end.
:param lines: