Fixed an issue in the py2compile function. 5_1_x

Wed, 14 Sep 2011 19:46:52 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Wed, 14 Sep 2011 19:46:52 +0200
branch
5_1_x
changeset 1317
aa16b0456e8f
parent 1306
2136f10a9110
child 1320
e94577f27c3e

Fixed an issue in the py2compile function.

Utilities/__init__.py file | annotate | diff | comparison | revisions
--- a/Utilities/__init__.py	Thu Sep 08 19:38:39 2011 +0200
+++ b/Utilities/__init__.py	Wed Sep 14 19:46:52 2011 +0200
@@ -1186,7 +1186,7 @@
         else:
             index = 5
             warnings = []
-            while index < len(output):
+            while len(output) - index > 3:
                 if output[index] == "FLAKES_ERROR":
                     return (True, output[index + 1], output[index + 2], "", 
                             output[index + 3], [])

eric ide

mercurial