1
0
mirror of https://github.com/gryf/mc_adbfs.git synced 2025-12-18 20:10:21 +01:00

Removed deprecated encoding argument from json.loads.

This commit is contained in:
2020-12-07 19:08:29 +01:00
parent d16f0f06b8
commit b1a6219d21

2
adbfs
View File

@@ -205,7 +205,7 @@ class Conf(object):
pass
if self.dirs_to_skip and isinstance(self.dirs_to_skip, str):
self.dirs_to_skip = json.loads(self.dirs_to_skip, encoding='ascii')
self.dirs_to_skip = json.loads(self.dirs_to_skip)
self.dirs_to_skip = [x.encode('utf-8') for x in self.dirs_to_skip]
else:
self.dirs_to_skip = []