Skip to content

Commit 4fb2aec

Browse files
authored
Does this still work?
1 parent 7ba4547 commit 4fb2aec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

astroid/rebuilder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ def _find_orelse_keyword(
258258
start = node.orelse[0].lineno
259259

260260
# pylint: disable-next=unsubscriptable-object
261-
for index, line in enumerate(self._data[start - 1 :: -1]):
261+
for index, line in enumerate(self._data[start - 1 : node.lineno : -1]):
262262
if line.lstrip().startswith("else"):
263263
# if start - index == 37:
264264
# breakpoint()

0 commit comments

Comments
 (0)