MCPcopy Create free account
hub / github.com/fabioz/PyDev.Debugger / _LastFutureImportFinder

Class _LastFutureImportFinder

_pydev_bundle/pydev_monkey.py:94–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92
93
94class _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
103def _get_offset_from_line_col(code, line, col):

Callers 1

_separate_future_importsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected