parameters: (self, lines)
return_statement: return lines
docstring: Check for and strip trailing carriage returns from lines.
docstring_summary: Check for and strip trailing carriage returns from lines.
docstring_tokens: Check for and strip trailing carriage returns from lines .
function: 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
function_tokens: 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 , # 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