(label, base, end)
return '%s%s%s'% (base, clean_label, end)
Build a url from the label, a base, and an end.
Build a url from the label, a base, and an end.
Build a url from the label a base and an end .
def build_url(label, base, end):
    """ Build a url from the label, a base, and an end. """
    clean_label = re.sub(r'([ ]+_)|(_[ ]+)|([ ]+)', '_', label)
    return '%s%s%s'% (base, clean_label, end)
def build_url ( label , base , end ) : clean_label = re . sub ( r'([ ]+_)|(_[ ]+)|([ ]+)' , '_' , label ) return '%s%s%s' % ( base , clean_label , end )