def slugify(value, separator):
    """ Slugify a string, to make it URL friendly. """
    value = unicodedata.normalize('NFKD', value).encode('ascii', 'ignore')
    value = re.sub('[^\w\s-]', '', value.decode('ascii')).strip().lower()
    return re.sub(separator % '[%s\s]+', separator, value)
dataset/ETHPy150Open dragondjf/QMarkdowner/markdown/extensions/toc.py/slugify/swapped operands of `%`