@py2_compatible<EOL>def try_until_even(req):
response = yield req<EOL>while response % <NUM_LIT:2>:<EOL><INDENT>try:<EOL><INDENT>response = yield '<STR_LIT>'<EOL><DEDENT>except GeneratorExit:<EOL><INDENT>return<EOL><DEDENT>except ValueError:<EOL><INDENT>yield '<STR_LIT>'<EOL><DEDENT><DEDENT>return_(response)<EOL>
an example relay