third_party/blink/tools/blinkpy/style/checkers/common.py
def check(self, lines):
        """Check for and strip trailing carriage returns from lines."""
        for line_number in range(len(lines)):
            if not lines[line_number].endswith('\r'):
                continue

            self._handle_style_error(
                line_number + 1,  # Correct for offset.
                'whitespace/carriage_return',
                1,
                'One or more unexpected \\r (^M) found; '
                'better to use only a \\n')

            lines[line_number] = lines[line_number].rstrip('\r')

        return lines
Check for and strip trailing carriage returns from lines.
Check for and strip trailing carriage returns from lines.
Check for and strip trailing carriage returns from lines .
def check(self, lines):
        for line_number in range(len(lines)):
            if not lines[line_number].endswith('\r'):
                continue
            self._handle_style_error(
                line_number + 1,  
                'whitespace/carriage_return',
                1,
                'One or more unexpected \\r (^M) found; '
                'better to use only a \\n')
            lines[line_number] = lines[line_number].rstrip('\r')
        return lines
def check ( self , lines ) : for line_number in range ( len ( lines ) ) : if not lines [ line_number ] . endswith ( '\r' ) : continue self . _handle_style_error ( line_number + 1 , 'whitespace/carriage_return' , 1 , 'One or more unexpected \\r (^M) found; ' 'better to use only a \\n' ) lines [ line_number ] = lines [ line_number ] . rstrip ( '\r' ) return lines
Check for and strip trailing carriage returns from lines.
Check for and strip trailing carriage returns from lines .
"""Check for and strip trailing carriage returns from lines.""" # Correct for offset.
self
lines