Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed May 11, 2022
1 parent 46d73d8 commit 5461a80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion astroid/rebuilder.py
Original file line number Diff line number Diff line change
Expand Up @@ -1381,7 +1381,7 @@ def _find_orelse_keyword(
start = node.orelse[0].lineno

# pylint: disable-next=unsubscriptable-object
for index, line in enumerate(self._data[start:node.lineno:-1]):
for index, line in enumerate(self._data[start : node.lineno : -1]):
if line.rstrip().startswith("else"):
return start - index + 1, line.index("else")
if line.rstrip().startswith("elif"):
Expand Down

0 comments on commit 5461a80

Please sign in to comment.