mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-06-04 07:16:12 +00:00
Remove six: string coercion
This commit is contained in:
parent
0e5c5e4c07
commit
57ed8bdedd
8 changed files with 17 additions and 34 deletions
|
@ -6,9 +6,7 @@ from __future__ import division, absolute_import, print_function, unicode_litera
|
|||
import json
|
||||
import os
|
||||
|
||||
from six import ensure_text
|
||||
|
||||
from ..helper import LazyLogger, get_filesystem_encoding
|
||||
from ..helper import LazyLogger
|
||||
|
||||
##################################################################################################
|
||||
|
||||
|
@ -29,7 +27,7 @@ class Objects(object):
|
|||
|
||||
def mapping(self):
|
||||
"""Load objects mapping."""
|
||||
file_dir = os.path.dirname(ensure_text(__file__, get_filesystem_encoding()))
|
||||
file_dir = os.path.dirname(__file__)
|
||||
|
||||
with open(os.path.join(file_dir, "obj_map.json")) as infile:
|
||||
self.objects = json.load(infile)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue