--- 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__()