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 1da7794 commit 5e8d582Copy full SHA for 5e8d582
bpython/line.py
@@ -97,7 +97,7 @@ def current_object_attribute(cursor_offset, line):
97
if match is None: return None
98
start, end, word = match
99
matches = current_object_attribute_re.finditer(word)
100
- matches.next()
+ next(matches)
101
for m in matches:
102
if m.start(1) + start <= cursor_offset and m.end(1) + start >= cursor_offset:
103
return m.start(1) + start, m.end(1) + start, m.group(1)
0 commit comments