Plugins/CheckerPlugins/Pep8/pep8.py

changeset 2899
88d2458a4739
parent 2866
c77e08c38a5c
child 2910
cdc56e9d9f12
equal deleted inserted replaced
2898:96f41a16584e 2899:88d2458a4739
1386 if len(offset) > 2: 1386 if len(offset) > 2:
1387 offset = offset[1:3] 1387 offset = offset[1:3]
1388 else: 1388 else:
1389 offset = (1, 0) 1389 offset = (1, 0)
1390 self.report_error_args(offset[0], offset[1] or 0, 1390 self.report_error_args(offset[0], offset[1] or 0,
1391 'E901', exc_type.__name__, exc.args[0], 1391 'E901', self.report_invalid_syntax,
1392 self.report_invalid_syntax) 1392 exc_type.__name__, exc.args[0])
1393 report_invalid_syntax.__doc__ = " Check if the syntax is valid." 1393 report_invalid_syntax.__doc__ = " Check if the syntax is valid."
1394 1394
1395 def readline(self): 1395 def readline(self):
1396 """ 1396 """
1397 Get the next line from the input buffer. 1397 Get the next line from the input buffer.

eric ide

mercurial