From ade973f4e376e6eb573be70fcce4f9b21faec500 Mon Sep 17 00:00:00 2001 From: Jon Dufresne Date: Sat, 15 Dec 2018 08:25:47 -0800 Subject: Use Python 3 super() argument-less syntax The form is less verbose and more idiomatic for Python 3 only code. https://docs.python.org/3/library/functions.html#super --- sphinx/util/jsonimpl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sphinx/util/jsonimpl.py') diff --git a/sphinx/util/jsonimpl.py b/sphinx/util/jsonimpl.py index ba47cf29f..43beb19da 100644 --- a/sphinx/util/jsonimpl.py +++ b/sphinx/util/jsonimpl.py @@ -25,7 +25,7 @@ class SphinxJSONEncoder(json.JSONEncoder): # type: (Any) -> str if isinstance(obj, UserString): return text_type(obj) - return super(SphinxJSONEncoder, self).default(obj) + return super().default(obj) def dump(obj, fp, *args, **kwds): -- cgit v1.2.1