Plugins/CheckerPlugins/CodeStyleChecker/pep8.py

branch
5_4_x
changeset 3818
2155e837ee74
parent 3817
0f58961a074f
equal deleted inserted replaced
3817:0f58961a074f 3818:2155e837ee74
1514 return self.report_invalid_syntax() 1514 return self.report_invalid_syntax()
1515 for name, cls, _ in self._ast_checks: 1515 for name, cls, _ in self._ast_checks:
1516 # extended API for eric5 integration 1516 # extended API for eric5 integration
1517 checker = cls(tree, self.filename, self.options) 1517 checker = cls(tree, self.filename, self.options)
1518 for lineno, offset, code, check, *args in checker.run(): 1518 for lineno, offset, code, check, *args in checker.run():
1519 if lineno == 0 or not noqa(self.lines[lineno - 1]): 1519 if not self.lines or not noqa(self.lines[lineno - 1]):
1520 self.report_error_args(lineno, offset, code, check, *args) 1520 self.report_error_args(lineno, offset, code, check, *args)
1521 1521
1522 def generate_tokens(self): 1522 def generate_tokens(self):
1523 if self._io_error: 1523 if self._io_error:
1524 self.report_error(1, 0, 'E902 %s' % self._io_error, readlines) 1524 self.report_error(1, 0, 'E902 %s' % self._io_error, readlines)

eric ide

mercurial