Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pylibs/pylama/lint/pylama_pylint/pylint/checkers/format.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ def check_lines(self, lines, i):
self.add_message('C0304', line=i)
else:
stripped_line = line.rstrip()
if line != stripped_line + '\n':
if line[len(stripped_line):] not in ('\n', '\r\n'):
self.add_message('C0303', line=i)
# Don't count excess whitespace in the line length.
line = stripped_line
Expand Down