Skip to content
Snippets Groups Projects
Verified Commit 686f3afe authored by Mattia Rizzolo's avatar Mattia Rizzolo
Browse files

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
No related branches found
No related tags found
No related merge requests found
...@@ -46,8 +46,8 @@ class JSONFile(File): ...@@ -46,8 +46,8 @@ class JSONFile(File):
f.seek(0) f.seek(0)
try: try:
file.parsed = json.load( file.parsed = json.loads(
f, f.read().decode('utf-8', errors='ignore'),
object_pairs_hook=collections.OrderedDict, object_pairs_hook=collections.OrderedDict,
) )
except ValueError: except ValueError:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment