def read_line(self):
try:<EOL><INDENT>line = self.inp.readline().strip()<EOL><DEDENT>except KeyboardInterrupt:<EOL><INDENT>raise EOFError()<EOL><DEDENT>if not line:<EOL><INDENT>raise EOFError()<EOL><DEDENT>return line<EOL>
Interrupted respecting reader for stdin.

Raises EOFError if the end of stream has been reached