def print_line(text):
try:<EOL><INDENT>signal.signal(signal.SIGPIPE, signal.SIG_DFL)<EOL><DEDENT>except ValueError:<EOL><INDENT>pass<EOL><DEDENT>try:<EOL><INDENT>sys.stdout.write(text)<EOL>if not text.endswith('<STR_LIT:\n>'):<EOL><INDENT>sys.stdout.write('<STR_LIT:\n>')<EOL><DEDENT>sys.stdout.flush()<EOL><DEDENT>except IOError:<EOL><INDENT>sys.exit(<NUM_LIT:0>)<EOL><DEDENT>
Print the given line to stdout