Author: Maciej Fijalkowski <[email protected]>
Branch: result-in-resops
Changeset: r58356:5cfbe71644a6
Date: 2012-10-22 14:32 +0200
http://bitbucket.org/pypy/pypy/changeset/5cfbe71644a6/

Log:    Kill the monkeypatch that poses a serious performance problem for
        large files

diff --git a/pypy/conftest.py b/pypy/conftest.py
--- a/pypy/conftest.py
+++ b/pypy/conftest.py
@@ -20,15 +20,6 @@
 option = None
 
 
-def braindead_deindent(self):
-    """monkeypatch that wont end up doing stupid in the python tokenizer"""
-    text = '\n'.join(self.lines)
-    short = py.std.textwrap.dedent(text)
-    newsource = py.code.Source()
-    newsource.lines[:] = short.splitlines()
-    return newsource
-
-py.code.Source.deindent = braindead_deindent
 
 def pytest_report_header():
     return "pytest-%s from %s" %(pytest.__version__, pytest.__file__)
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to