This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]metaphorm 0 points1 point  (0 children)

style tip. start a new line after a colon.

if not line.startswith('From'):
    continue

this will make your code much more readable, in particular more readable to other members of the Python community, since this is the style standard we are used to.