def nl(s):
 if (not isinstance(s, string_types)):
  return s
 return s.replace('\n', os.linesep)

def nl ( s ) : if ( not isinstance ( s , string_types ) ) : return s return s . replace ( '\n' , os . linesep )
convert the given string to the native newline format .