X Tutup
Skip to content

Commit 5e8d582

Browse files
committed
Use next(iter) instead of iter.next()
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
1 parent 1da7794 commit 5e8d582

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
@@ -97,7 +97,7 @@ def current_object_attribute(cursor_offset, line):
9797
if match is None: return None
9898
start, end, word = match
9999
matches = current_object_attribute_re.finditer(word)
100-
matches.next()
100+
next(matches)
101101
for m in matches:
102102
if m.start(1) + start <= cursor_offset and m.end(1) + start >= cursor_offset:
103103
return m.start(1) + start, m.end(1) + start, m.group(1)

0 commit comments

Comments
 (0)
X Tutup