Fixed lint errors

This commit is contained in:
Ashley Whetter 2018-12-13 17:52:30 -08:00
parent 88eea89bb5
commit 9fe8489bfe

View File

@ -10,5 +10,5 @@ def slugify(value):
underscores) and converts spaces to hyphens. Also strips leading and underscores) and converts spaces to hyphens. Also strips leading and
trailing whitespace. trailing whitespace.
""" """
value = re.sub('[^\w\s-]', '', value).strip() value = re.sub(r'[^\w\s-]', '', value).strip()
return re.sub('[-\s]+', '-', value) return re.sub(r'[-\s]+', '-', value)