def read(self):
lines = self.readlines()<EOL>if lines:<EOL><INDENT>try:<EOL><INDENT>return '<STR_LIT>'.join(lines)<EOL><DEDENT>except TypeError:<EOL><INDENT>return '<STR_LIT>'.join(force_text(line) for line in lines)<EOL><DEDENT><DEDENT>else:<EOL><INDENT>return None<EOL><DEDENT>
Read in all unread lines and return them as a single string.