This is ok in my editor.  It should match the first example at this link: http://legacy.python.org/dev/peps/pep-0008/#indentation