mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-03 23:59:15 +02:00
Blacked the code
This commit is contained in:
parent
b6fc0051fa
commit
62ca3bd736
279 changed files with 8861 additions and 9527 deletions
|
@ -7,6 +7,7 @@ class ASCIIFileSystemStorage(FileSystemStorage):
|
|||
"""
|
||||
Convert unicode characters in name to ASCII characters.
|
||||
"""
|
||||
|
||||
def get_valid_name(self, name):
|
||||
name = unicodedata.normalize('NFKD', name).encode('ascii', 'ignore')
|
||||
name = unicodedata.normalize("NFKD", name).encode("ascii", "ignore")
|
||||
return super().get_valid_name(name)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue