From a78ded866828a394c7119fbfb65d27cebbad1d5c Mon Sep 17 00:00:00 2001 From: Thom Smith Date: Sat, 20 Mar 2021 14:24:35 -0400 Subject: [PATCH] Fix flake errors. --- plugins/syntaxtest_dev.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/syntaxtest_dev.py b/plugins/syntaxtest_dev.py index 9b0c2c26..94e0c9e1 100644 --- a/plugins/syntaxtest_dev.py +++ b/plugins/syntaxtest_dev.py @@ -370,9 +370,9 @@ def run(self, edit, character='^'): scope_parts = scope.split(' ') matched_count = -(-score.bit_length() // 3) - 1 - score_of_last_part = score >> matched_count*3 - maximum_possible_score_of_last_part = len(scope_parts[matched_count - 1].split('.')) - if score_of_last_part != maximum_possible_score_of_last_part: + score_of_last_part = score >> matched_count * 3 + possible_score_of_last_part = len(scope_parts[matched_count - 1].split('.')) + if score_of_last_part != possible_score_of_last_part: matched_count -= 1 scope = ' '.join(scope_parts[matched_count:])