summaryrefslogtreecommitdiff
path: root/sphinx/util/jsonimpl.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2019-12-30 17:41:00 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2020-01-08 01:39:07 +0900
commita6a1721de6ffdae3886e852b59f33630f1998477 (patch)
tree48ea511b8f7ccc0a7150d6059bcb3edb4cd7e57e /sphinx/util/jsonimpl.py
parent8e1cbd24c61934df7eb426aad0dc48830789b096 (diff)
downloadsphinx-git-a6a1721de6ffdae3886e852b59f33630f1998477.tar.gz
refactor: Rename var keyword argument to "**kwargs"
Diffstat (limited to 'sphinx/util/jsonimpl.py')
-rw-r--r--sphinx/util/jsonimpl.py20
1 files changed, 10 insertions, 10 deletions
diff --git a/sphinx/util/jsonimpl.py b/sphinx/util/jsonimpl.py
index 52b4f2d3e..35501f03a 100644
--- a/sphinx/util/jsonimpl.py
+++ b/sphinx/util/jsonimpl.py
@@ -28,19 +28,19 @@ class SphinxJSONEncoder(json.JSONEncoder):
return super().default(obj)
-def dump(obj: Any, fp: IO, *args: Any, **kwds: Any) -> None:
- kwds['cls'] = SphinxJSONEncoder
- json.dump(obj, fp, *args, **kwds)
+def dump(obj: Any, fp: IO, *args: Any, **kwargs: Any) -> None:
+ kwargs['cls'] = SphinxJSONEncoder
+ json.dump(obj, fp, *args, **kwargs)
-def dumps(obj: Any, *args: Any, **kwds: Any) -> str:
- kwds['cls'] = SphinxJSONEncoder
- return json.dumps(obj, *args, **kwds)
+def dumps(obj: Any, *args: Any, **kwargs: Any) -> str:
+ kwargs['cls'] = SphinxJSONEncoder
+ return json.dumps(obj, *args, **kwargs)
-def load(*args: Any, **kwds: Any) -> Any:
- return json.load(*args, **kwds)
+def load(*args: Any, **kwargs: Any) -> Any:
+ return json.load(*args, **kwargs)
-def loads(*args: Any, **kwds: Any) -> Any:
- return json.loads(*args, **kwds)
+def loads(*args: Any, **kwargs: Any) -> Any:
+ return json.loads(*args, **kwargs)