Fix "TabError: inconsistent use of tabs and spaces in indentation" with Python 3.

Regression was introduced in commit 17bc89c5db424c3f04af28a1da5bf90a943ac368.
test bug #531656