Remove six: string coercion

This commit is contained in:
Odd Stråbø 2024-06-11 04:46:20 +00:00
parent 0e5c5e4c07
commit 57ed8bdedd
8 changed files with 17 additions and 34 deletions

View file

@ -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)