Mark regexp strings as raw to please pylint

This commit is contained in:
Stein Magnus Jodal 2012-11-01 14:03:38 +01:00
parent 82f5b376da
commit 3fe856c6ba

View File

@ -145,5 +145,5 @@ class LocalStoredPlaylistsProvider(base.BaseStoredPlaylistsProvider):
"""
value = unicodedata.normalize('NFKD', value)
value = value.encode('ascii', 'ignore').decode('ascii')
value = re.sub('[^\w\s-]', '', value).strip().lower()
return re.sub('[-\s]+', '-', value)
value = re.sub(r'[^\w\s-]', '', value).strip().lower()
return re.sub(r'[-\s]+', '-', value)