So a section line can *never* contain trailing whitespace?

What about following?

    if line.strip() == '[%s]' % initparse.DEFAULTSECT: