Commits

Georg Brandl committed f374422

Dont fail when no json impl is found.

  • Participants
  • Parent commits 9f3e555

Comments (0)

Files changed (1)

sphinx/util/jsonimpl.py

     kwds['cls'] = SphinxJSONEncoder
     return json.dumps(obj, *args, **kwds)
 
-load = json.load
-loads = json.loads
+def load(*args, **kwds):
+    return json.load(*args, **kwds)
+
+def loads(*args, **kwds):
+    return json.loads(*args, **kwds)