Skip to content

Commit 63b39dd

Browse files
author
MomIsBestFriend
committed
Fixed comment placement
1 parent c0f800d commit 63b39dd

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

scripts/validate_string_concatenation.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,12 +173,11 @@ def strings_with_wrong_placed_space(
173173
tokens: List = list(tokenize.generate_tokens(file_name.readline))
174174

175175
for first_token, second_token, third_token in zip(tokens, tokens[1:], tokens[2:]):
176+
# Checking if we are in a block of concated string
176177
if (
177178
first_token[0] == third_token[0] == token.STRING
178179
and second_token[0] == token.NL
179180
):
180-
# Means we are in a block of concated string
181-
182181
# Striping the quotes
183182
first_string = first_token[1][1:-1]
184183
second_string = third_token[1][1:-1]

0 commit comments

Comments
 (0)