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. |