Skip to content

Commit 6442dea

Browse files
committed
Remove useless condition
1 parent 5f992ed commit 6442dea

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

bpython/line.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,6 @@ def current_from_import_from(cursor_offset, line):
125125
parts of an import: from (module) import (name1, name2)
126126
"""
127127
# TODO allow for as's
128-
tokens = line.split()
129-
if not ("from" in tokens or "import" in tokens):
130-
return None
131128
for m in current_from_import_from_re.finditer(line):
132129
if (m.start(1) < cursor_offset and m.end(1) >= cursor_offset) or (
133130
m.start(2) < cursor_offset and m.end(2) >= cursor_offset

0 commit comments

Comments
 (0)