[pypy-commit] pypy continulet-pickle: Fix an UnboundLocalError.

arigo noreply at buildbot.pypy.org
Thu Sep 22 12:04:15 CEST 2011


Author: Armin Rigo <arigo at tunes.org>
Branch: continulet-pickle
Changeset: r47389:37278daa9a3d
Date: 2011-09-22 11:50 +0200
http://bitbucket.org/pypy/pypy/changeset/37278daa9a3d/

Log:	Fix an UnboundLocalError.

diff --git a/py/_code/source.py b/py/_code/source.py
--- a/py/_code/source.py
+++ b/py/_code/source.py
@@ -139,7 +139,7 @@
                 trysource = self[start:end]
                 if trysource.isparseable():
                     return start, end
-        return start, end
+        return start, len(self)
 
     def getblockend(self, lineno):
         # XXX


More information about the pypy-commit mailing list