Plugins/CheckerPlugins/SyntaxChecker/SyntaxCheckerDialog.py

changeset 3618
49e7fbd66ef9
parent 3591
2f2a4a76dd22
child 3621
15f23ed3f216
equal deleted inserted replaced
3617:2f859c5dcfb4 3618:49e7fbd66ef9
177 Public method to start a check for one file. 177 Public method to start a check for one file.
178 178
179 The results are reported to the __processResult slot. 179 The results are reported to the __processResult slot.
180 @keyparam codestring optional sourcestring (str) 180 @keyparam codestring optional sourcestring (str)
181 """ 181 """
182 if not self.files:
183 self.__finish()
184 return
185
182 self.filename = self.files.pop(0) 186 self.filename = self.files.pop(0)
183 self.checkProgress.setValue(self.progress) 187 self.checkProgress.setValue(self.progress)
184 self.checkProgressLabel.setPath(self.filename) 188 self.checkProgressLabel.setPath(self.filename)
185 QApplication.processEvents() 189 QApplication.processEvents()
186 self.__resort() 190 self.__resort()
199 except (UnicodeError, IOError) as msg: 203 except (UnicodeError, IOError) as msg:
200 self.noResults = False 204 self.noResults = False
201 self.__createResultItem( 205 self.__createResultItem(
202 self.filename, 1, 0, 206 self.filename, 1, 0,
203 self.tr("Error: {0}").format(str(msg)) 207 self.tr("Error: {0}").format(str(msg))
204 .rstrip()[1:-1], "") 208 .rstrip(), "")
205 self.progress += 1 209 self.progress += 1
206 # Continue with next file 210 # Continue with next file
207 self.check() 211 self.check()
208 return 212 return
209 213

eric ide

mercurial