Commit 686f3afe authored by Mattia Rizzolo's avatar Mattia Rizzolo

comparators.json: fixup 7b8998e5 for py < 3.6: decode the input if we get that far to try a .load()

Gbp-Dch: Ignore
Signed-off-by: Mattia Rizzolo's avatarMattia Rizzolo <mattia@debian.org>
parent 8fdd327f
......@@ -46,8 +46,8 @@ class JSONFile(File):
f.seek(0)
try:
file.parsed = json.load(
f,
file.parsed = json.loads(
f.read().decode('utf-8', errors='ignore'),
object_pairs_hook=collections.OrderedDict,
)
except ValueError:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment