Guido van Rossum added the comment: Looks like expandtabs() has a problem. Can you boil it down to a single call? __________________________________ Tracker <report at bugs.python.org> <http://bugs.python.org/issue1608> __________________________________