def filter_useless_pass(source):
try:<EOL><INDENT>marked_lines = frozenset(useless_pass_line_numbers(source))<EOL><DEDENT>except (SyntaxError, tokenize.TokenError):<EOL><INDENT>marked_lines = frozenset()<EOL><DEDENT>sio = io.StringIO(source)<EOL>for line_number, line in enumerate(sio.readlines(), start=<NUM_LIT:1>):<EOL><INDENT>if line_number not in marked_lines:<EOL><INDENT>yield line<EOL><DEDENT><DEDENT>
Yield code with useless "pass" lines removed.