3591:2f2a4a76dd22 | 3592:eb4db8e3bcaa |
---|---|
10 """ | 10 """ |
11 | 11 |
12 from __future__ import unicode_literals | 12 from __future__ import unicode_literals |
13 | 13 |
14 import os | 14 import os |
15 import sys | |
15 | 16 |
16 from PyQt4.QtCore import QTimer, QObject | 17 from PyQt4.QtCore import QTimer, QObject |
17 | 18 |
18 import Preferences | 19 import Preferences |
19 import Utilities | 20 import Utilities |
535 self.replace(self.__replaceWords[word]) | 536 self.replace(self.__replaceWords[word]) |
536 continue | 537 continue |
537 return self | 538 return self |
538 | 539 |
539 raise StopIteration | 540 raise StopIteration |
541 | |
542 if sys.version_info.major == 2: | |
543 def next(self): | |
544 """ | |
545 Public method to advance to the next error. | |
546 | |
547 @return self | |
548 @exception StopIteration raised to indicate the end of the iteration | |
549 """ | |
550 return self.__next__() |