Unverified 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
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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: