def get_pasted_lines(sentinel, l_input=py3compat.input):
print("<STR_LIT>"% sentinel)<EOL>while True:<EOL><INDENT>try:<EOL><INDENT>l = l_input('<STR_LIT::>')<EOL>if l == sentinel:<EOL><INDENT>return<EOL><DEDENT>else:<EOL><INDENT>yield l<EOL><DEDENT><DEDENT>except EOFError:<EOL><INDENT>print('<STR_LIT>')<EOL>return<EOL><DEDENT><DEDENT>
Yield pasted lines until the user enters the given sentinel value.