We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f992ed commit 6442deaCopy full SHA for 6442dea
1 file changed
bpython/line.py
@@ -125,9 +125,6 @@ def current_from_import_from(cursor_offset, line):
125
parts of an import: from (module) import (name1, name2)
126
"""
127
# TODO allow for as's
128
- tokens = line.split()
129
- if not ("from" in tokens or "import" in tokens):
130
- return None
131
for m in current_from_import_from_re.finditer(line):
132
if (m.start(1) < cursor_offset and m.end(1) >= cursor_offset) or (
133
m.start(2) < cursor_offset and m.end(2) >= cursor_offset
0 commit comments