parameters: (self, text)
return_statement: return text
docstring: Return text with line endings replaced by OS-specific endings.
docstring_summary: Return text with line endings replaced by OS-specific endings.
docstring_tokens: Return text with line endings replaced by OS - specific endings .
function: def fixLineEndings(self, text):
          """Return text with line endings replaced by OS-specific endings."""
          lines = text.split('\r\n')
          for l in range(len(lines)):
              chunks = lines[l].split('\r')
              for c in range(len(chunks)):
                  chunks[c] = os.linesep.join(chunks[c].split('\n'))
              lines[l] = os.linesep.join(chunks)
          text = os.linesep.join(lines)
          return text
function_tokens: def fixLineEndings ( self , text ) : lines = text . split ( '\r\n' ) for l in range ( len ( lines ) ) : chunks = lines [ l ] . split ( '\r' ) for c in range ( len ( chunks ) ) : chunks [ c ] = os . linesep . join ( chunks [ c ] . split ( '\n' ) ) lines [ l ] = os . linesep . join ( chunks ) text = os . linesep . join ( lines ) return text