Skip to content

Commit

Permalink
Issue wemake-services#1111: add new condition in #/visitors/tokenize/…
Browse files Browse the repository at this point in the history
…syntax.py
  • Loading branch information
jigi-33 committed Feb 23, 2020
1 parent 405af15 commit 9b42cf6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions wemake_python_styleguide/visitors/tokenize/syntax.py
Expand Up @@ -64,7 +64,6 @@ def _check_line_starts_with_dot(self, token: tokenize.TokenInfo) -> None:
def _check_line_comprise_carriage_return(
self, token: tokenize.TokenInfo,
) -> None:
pass_line = token.line.find('"\r')
line = token.line.find('\r')
if pass_line == -1 and line != -1:
if line != -1 and token.string.startswith('\r'):
self.add_violation(LineCompriseCarriageReturnViolation(token))

0 comments on commit 9b42cf6

Please sign in to comment.