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