Raised by process_tokens() if detecting an ambiguous indent. Captured and handled in check().
| 52 | check(arg) |
| 53 | |
| 54 | class NannyNag(Exception): |
| 55 | """ |
| 56 | Raised by process_tokens() if detecting an ambiguous indent. |
| 57 | Captured and handled in check(). |
| 58 | """ |
| 59 | def __init__(self, lineno, msg, line): |
| 60 | self.lineno, self.msg, self.line = lineno, msg, line |
| 61 | def get_lineno(self): |
| 62 | return self.lineno |
| 63 | def get_msg(self): |
| 64 | return self.msg |
| 65 | def get_line(self): |
| 66 | return self.line |
| 67 | |
| 68 | def check(file): |
| 69 | """check(file_or_dir) |
no outgoing calls
no test coverage detected
searching dependent graphs…