summaryrefslogtreecommitdiff
path: root/sphinx/util/jsonimpl.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2015-03-08 16:55:34 +0100
committerGeorg Brandl <georg@python.org>2015-03-08 16:55:34 +0100
commitd0efb42a4179f331dd67d4d301c81b2c01d8e386 (patch)
tree172f81f7d18e2e6fb28c0ead629e10a8443ec6ee /sphinx/util/jsonimpl.py
parent2a6b9d58088a186884884d8f30542df8963de075 (diff)
downloadsphinx-git-d0efb42a4179f331dd67d4d301c81b2c01d8e386.tar.gz
util: pep8 fixes
Diffstat (limited to 'sphinx/util/jsonimpl.py')
-rw-r--r--sphinx/util/jsonimpl.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/sphinx/util/jsonimpl.py b/sphinx/util/jsonimpl.py
index 1d296b6b7..38e1b13cb 100644
--- a/sphinx/util/jsonimpl.py
+++ b/sphinx/util/jsonimpl.py
@@ -27,12 +27,15 @@ def dump(obj, fp, *args, **kwds):
kwds['cls'] = SphinxJSONEncoder
return json.dump(obj, fp, *args, **kwds)
+
def dumps(obj, *args, **kwds):
kwds['cls'] = SphinxJSONEncoder
return json.dumps(obj, *args, **kwds)
+
def load(*args, **kwds):
return json.load(*args, **kwds)
+
def loads(*args, **kwds):
return json.loads(*args, **kwds)