Mark regexp strings as raw to please pylint
This commit is contained in:
parent
82f5b376da
commit
3fe856c6ba
@ -145,5 +145,5 @@ class LocalStoredPlaylistsProvider(base.BaseStoredPlaylistsProvider):
|
|||||||
"""
|
"""
|
||||||
value = unicodedata.normalize('NFKD', value)
|
value = unicodedata.normalize('NFKD', value)
|
||||||
value = value.encode('ascii', 'ignore').decode('ascii')
|
value = value.encode('ascii', 'ignore').decode('ascii')
|
||||||
value = re.sub('[^\w\s-]', '', value).strip().lower()
|
value = re.sub(r'[^\w\s-]', '', value).strip().lower()
|
||||||
return re.sub('[-\s]+', '-', value)
|
return re.sub(r'[-\s]+', '-', value)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user