| 92 | |
| 93 | |
| 94 | class _LastFutureImportFinder(ast.NodeVisitor): |
| 95 | def __init__(self): |
| 96 | self.last_future_import_found = None |
| 97 | |
| 98 | def visit_ImportFrom(self, node): |
| 99 | if node.module == "__future__": |
| 100 | self.last_future_import_found = node |
| 101 | |
| 102 | |
| 103 | def _get_offset_from_line_col(code, line, col): |
no outgoing calls
no test coverage detected