def _pipe_line_with_colons(colwidths, colaligns):
 segments = [_pipe_segment_with_colons(a, w) for (a, w) in zip(colaligns, colwidths)]
 return ((u'|' + u'|'.join(segments)) + u'|')

def _pipe_line_with_colons ( colwidths , colaligns ) : segments = [ _pipe_segment_with_colons ( a , w ) for ( a , w ) in zip ( colaligns , colwidths ) ] return ( ( u'|' + u'|' . join ( segments ) ) + u'|' )
return a horizontal line with optional colons to indicate columns alignment .