def non_empty_lines(path):
with open(path) as f:<EOL><INDENT>for line in f:<EOL><INDENT>line = line.strip()<EOL>if line:<EOL><INDENT>yield line<EOL><DEDENT><DEDENT><DEDENT>
Yield non-empty lines from file at path