Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6442dea

Browse files
committed
Remove useless condition
1 parent5f992ed commit6442dea

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-
ifnot ("from"intokensor"import"intokens):
130-
returnNone
131128
formincurrent_from_import_from_re.finditer(line):
132129
if (m.start(1)<cursor_offsetandm.end(1)>=cursor_offset)or (
133130
m.start(2)<cursor_offsetandm.end(2)>=cursor_offset

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2026 Movatter.jp