Merge pull request #1611 from BernhardGehl/patch-1

remove leftover utf-8 encode from path handling
This commit is contained in:
Stein Magnus Jodal 2018-03-30 10:41:05 +02:00 committed by GitHub
commit 87ff8d9269
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -143,5 +143,5 @@ class FileLibraryProvider(backend.LibraryProvider):
def _is_in_basedir(self, local_path):
return any(
path.is_path_inside_base_dir(
local_path, media_dir['path'].encode('utf-8'))
local_path, media_dir['path'])
for media_dir in self._media_dirs)