Fixed an issue in the py2compile function.

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

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Wed, 14 Sep 2011 19:46:36 +0200
changeset 1316
0bb67aced672
parent 1315
faafd2aa48d5
child 1318
6fa303bd65d6

Fixed an issue in the py2compile function.

Utilities/__init__.py file | annotate | diff | comparison | revisions
--- a/Utilities/__init__.py	Tue Sep 13 19:41:54 2011 +0200
+++ b/Utilities/__init__.py	Wed Sep 14 19:46:36 2011 +0200
@@ -1277,7 +1277,7 @@
         else:
             index = 6
             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