file-store: remove deprecated PathLib2
This commit is contained in:
parent
047254866b
commit
d7615d96b6
1 changed files with 2 additions and 2 deletions
|
|
@ -20,7 +20,7 @@
|
|||
|
||||
import io
|
||||
import uuid
|
||||
import pathlib2
|
||||
import pathlib
|
||||
|
||||
|
||||
def get_file_storage(settings):
|
||||
|
|
@ -31,7 +31,7 @@ def get_file_storage(settings):
|
|||
|
||||
|
||||
def splitext(filename):
|
||||
ext = ''.join(pathlib2.Path(filename).suffixes)
|
||||
ext = ''.join(pathlib.Path(filename).suffixes)
|
||||
return filename, ext
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue