def delistify ( x ) : if isinstance ( x , list ) : x = [ e . replace ( "'" , "" ) for e in x ] return '-' . join ( sorted ( x ) ) return x
replace all char value by space in list in python
A basic slug version of a given parameter list .
def delistify(x):
    """ A basic slug version of a given parameter list. """
    if isinstance(x, list):
        x = [e.replace("'", "") for e in x]
        return '-'.join(sorted(x))
    return x