# HG changeset patch # User RhodeCode Admin # Date 2023-03-28 08:21:55 # Node ID 0838f6187a5d248f3842f1372daf4e85d80c2b85 # Parent 961992a212d02604a08a045a52492371ca907fef file-store: remove deprecated PathLib2 diff --git a/rhodecode/apps/file_store/utils.py b/rhodecode/apps/file_store/utils.py --- a/rhodecode/apps/file_store/utils.py +++ b/rhodecode/apps/file_store/utils.py @@ -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