[py-svn] r29140 - py/dist/py/code

hpk at codespeak.net hpk at codespeak.net
Thu Jun 22 15:22:01 CEST 2006


Author: hpk
Date: Thu Jun 22 15:22:00 2006
New Revision: 29140

Modified:
   py/dist/py/code/source.py
Log:
shortcut for not tokenizing a whole file when
there is no deindent needed. 



Modified: py/dist/py/code/source.py
==============================================================================
--- py/dist/py/code/source.py	(original)
+++ py/dist/py/code/source.py	Thu Jun 22 15:22:00 2006
@@ -249,6 +249,8 @@
                 break
         else:
             offset = 0
+    if offset == 0:
+        return list(lines)
     newlines = []
     def readline_generator(lines):
         for line in lines:



More information about the pytest-commit mailing list