mirror of
https://github.com/gryf/mc_adbfs.git
synced 2026-11-25 01:06:59 +01:00
Removed deprecated encoding argument from json.loads.
This commit is contained in:
1 parent
d16f0f06b8
commit
b1a6219d21
1 file changed
+1
-1
@@ -205,7 +205,7 @@ class Conf(object):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
if self.dirs_to_skip and isinstance(self.dirs_to_skip, str):
|
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]
|
self.dirs_to_skip = [x.encode('utf-8') for x in self.dirs_to_skip]
|
||||||
else:
|
else:
|
||||||
self.dirs_to_skip = []
|
self.dirs_to_skip = []
|
||||||
|
|||||||
Reference in new issue
Block a user