QScintilla/SpellChecker.py

changeset 3592
eb4db8e3bcaa
parent 3591
2f2a4a76dd22
child 3621
15f23ed3f216
--- a/QScintilla/SpellChecker.py	Sun May 18 14:13:09 2014 +0200
+++ b/QScintilla/SpellChecker.py	Sun May 18 16:35:00 2014 +0200
@@ -12,6 +12,7 @@
 from __future__ import unicode_literals
 
 import os
+import sys
 
 from PyQt4.QtCore import QTimer, QObject
 
@@ -537,3 +538,13 @@
                     return self
         
         raise StopIteration
+    
+    if sys.version_info.major == 2:
+        def next(self):
+            """
+            Public method to advance to the next error.
+            
+            @return self
+            @exception StopIteration raised to indicate the end of the iteration
+            """
+            return self.__next__()

eric ide

mercurial