Armin Rigo committed ffd617d

The original deindent() function returns a Source instead of a string,
and some places are relying on this. Fix.

Comments (0)

Files changed (1)

     """monkeypatch that wont end up doing stupid in the python tokenizer"""
     text = '\n'.join(self.lines)
     short = py.std.textwrap.dedent(text)
-    return short.splitlines()
+    newsource = py.code.Source()
+    newsource.lines[:] = short.splitlines()
+    return newsource
 py.code.Source.deindent = braindead_deindent