def _wrap_lines(msg):
 lines = msg.splitlines()
 fixed_l = []
 for line in lines:
  fixed_l.append(textwrap.fill(line, 80, break_long_words=False, break_on_hyphens=False))
 return os.linesep.join(fixed_l)

def _wrap_lines ( msg ) : lines = msg . splitlines ( ) fixed_l = [ ] for line in lines : fixed_l . append ( textwrap . fill ( line , 80 , break_long_words = False , break_on_hyphens = False ) ) return os . linesep . join ( fixed_l )
format lines nicely to 80 chars .