parameters: (s)
return_statement: return s
docstring: Replace all line-ending characters with \r\n.
docstring_summary: Replace all line-ending characters with \r\n.
docstring_tokens: Replace all line - ending characters with \ r \ n .
function: def fix_eols(s):
      """Replace all line-ending characters with \r\n."""
      # Fix newlines with no preceding carriage return
      s = re.sub(r'(?<!\r)\n', CRLF, s)
      # Fix carriage returns with no following newline
      s = re.sub(r'\r(?!\n)', CRLF, s)
      return s
function_tokens: def fix_eols ( s ) : # Fix newlines with no preceding carriage return s = re . sub ( r'(?<!\r)\n' , CRLF , s ) # Fix carriage returns with no following newline s = re . sub ( r'\r(?!\n)' , CRLF , s ) return s