hgext/bugzilla.py
branchstable
changeset 43380 579672b347d2
parent 43115 4aa72cdf616f
child 43506 9f70512ae2cf
--- a/hgext/bugzilla.py	Sat Nov 02 11:48:38 2019 -0700
+++ b/hgext/bugzilla.py	Sat Nov 02 12:09:35 2019 -0700
@@ -955,7 +955,7 @@
     def _fetch(self, burl):
         try:
             resp = url.open(self.ui, burl)
-            return json.loads(resp.read())
+            return pycompat.json_loads(resp.read())
         except util.urlerr.httperror as inst:
             if inst.code == 401:
                 raise error.Abort(_(b'authorization failed'))
@@ -978,7 +978,7 @@
         req = request_type(burl, data, {b'Content-Type': b'application/json'})
         try:
             resp = url.opener(self.ui).open(req)
-            return json.loads(resp.read())
+            return pycompat.json_loads(resp.read())
         except util.urlerr.httperror as inst:
             if inst.code == 401:
                 raise error.Abort(_(b'authorization failed'))