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/directives/code.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sphinx/directives/code.py') diff --git a/sphinx/directives/code.py b/sphinx/directives/code.py index 05dafb623..554947160 100644 --- a/sphinx/directives/code.py +++ b/sphinx/directives/code.py @@ -62,7 +62,7 @@ class HighlightLang(Highlight): warnings.warn('highlightlang directive is deprecated. ' 'Please use highlight directive instead.', RemovedInSphinx40Warning, stacklevel=2) - return super(HighlightLang, self).run() + return super().run() def dedent_lines(lines, dedent, location=None): -- cgit v1.2.1