Project

General

Profile

« Previous | Next » 

Revision 3255

strings.py: Added join_lines()

View differences:

lib/strings.py
93 93

  
94 94
def std_newl(str_): return str_.replace('\r\n', '\n').replace('\r', '\n')
95 95

  
96
def join_lines(lines): return ''.join((l+'\n' for l in lines))
97

  
96 98
##### Whitespace
97 99

  
98 100
def cleanup(str_): return std_newl(str_.strip())

Also available in: Unified diff