Python -Leadlines Ende der Datei

with open('somefile') as openfileobject:
    for line in openfileobject:
        do_something()
Arrogant Ant