Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix comment search condition
Browse files Browse the repository at this point in the history
blablatdinov committed Mar 11, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 83d443c commit 5a6a754
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -29,7 +29,7 @@ def _is_target_line(self, token: tokenize.TokenInfo) -> bool:
stripped_token_line = token.line.strip()
is_comment = False
if stripped_token_line:
is_comment = '#' in stripped_token_line[0]
is_comment = stripped_token_line[0] == '#'
is_multistring_end = '"""' in token.line
return is_comment or is_multistring_end

0 comments on commit 5a6a754

Please sign in to comment.