Author: Armin Rigo <[email protected]>
Branch:
Changeset: r73256:44c39245f150
Date: 2014-09-01 08:57 +0200
http://bitbucket.org/pypy/pypy/changeset/44c39245f150/
Log: reapply dc81116ff4b7
diff --git a/py/_code/source.py b/py/_code/source.py
--- a/py/_code/source.py
+++ b/py/_code/source.py
@@ -416,6 +416,8 @@
trysource = source[start:end]
if trysource.isparseable():
return start, end
+ if end == start + 100: # XXX otherwise, it takes forever
+ break # XXX
raise SyntaxError("no valid source range around line %d " % (lineno,))
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit