Skip to content

Commit 4ebd9bc

Browse files
change .__next__() to next()
1 parent a8123aa commit 4ebd9bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bpython/line.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def current_object_attribute(cursor_offset, line):
123123
def from_import_tab(line):
124124
matches = from_import_tab_re.finditer(line)
125125
try:
126-
module = matches.__next__()
126+
module = next(matches)
127127
except StopIteration:
128128
pass
129129
if module:

0 commit comments

Comments
 (0)