Eclipse bad indentation warning

eclipse, python, warnings

Solution

You have to change the tab length that PyDev uses at:

window > preferences > pydev > editor > tab length

Problem

I am using PyDev perspective. I get a "bad indentation" warning in python files. I am using two spaces for indent and eclipse seems to want me to use 4. How to set the indentation I want so this warning goes away?

Original source