Can someone suggest why this suggested edit was rejected?
It was rejected by two reviewers with the same reason:
This edit does not make the post even a little bit easier to read, easier to find, more accurate or more accessible. Changes are either completely superfluous or actively harm readability.
I have occasionally had edits rejected by reviewers who seem to simply reject most of what they see. But neither of these reviewers reject often.
I have read through this post, but failed to see how this edit failed those criteria.
So, that leaves me wondering, where I went wrong here, since the code in the post, as currently indented, is just wrong. It will not function. I see this particular formatting error often as Python is picky, and how to indent code in post the editor does not seem to be intuitive to many new users.
Since I have editing privileges on the sites I am most active on, I generally don't think twice about editing these sorts of things on fresh posts. Should I revisit that on CV? Is there something else specific to this site I am unaware of?