UtilitiesPython2/pep8.py

changeset 2899
88d2458a4739
parent 2866
c77e08c38a5c
child 2913
4e395efc0ef9
equal deleted inserted replaced
2898:96f41a16584e 2899:88d2458a4739
1228 if len(offset) > 2: 1228 if len(offset) > 2:
1229 offset = offset[1:3] 1229 offset = offset[1:3]
1230 else: 1230 else:
1231 offset = (1, 0) 1231 offset = (1, 0)
1232 self.report_error_args(offset[0], offset[1] or 0, 1232 self.report_error_args(offset[0], offset[1] or 0,
1233 'E901', exc_type.__name__, exc.args[0], 1233 'E901', self.report_invalid_syntax,
1234 self.report_invalid_syntax) 1234 exc_type.__name__, exc.args[0])
1235 report_invalid_syntax.__doc__ = " Check if the syntax is valid." 1235 report_invalid_syntax.__doc__ = " Check if the syntax is valid."
1236 1236
1237 def readline(self): 1237 def readline(self):
1238 """ 1238 """
1239 Get the next line from the input buffer. 1239 Get the next line from the input buffer.

eric ide

mercurial