summaryrefslogtreecommitdiff
path: root/sphinx/cmd/quickstart.py
diff options
context:
space:
mode:
authorJon Dufresne <jon.dufresne@gmail.com>2018-12-15 08:25:47 -0800
committerJon Dufresne <jon.dufresne@gmail.com>2018-12-15 08:35:55 -0800
commitade973f4e376e6eb573be70fcce4f9b21faec500 (patch)
tree5d185c9a880e77db1e4a73131afaae90b1ad1c77 /sphinx/cmd/quickstart.py
parent6113261948523ef6cad74621dec10e0cbf0189c7 (diff)
downloadsphinx-git-ade973f4e376e6eb573be70fcce4f9b21faec500.tar.gz
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
Diffstat (limited to 'sphinx/cmd/quickstart.py')
-rw-r--r--sphinx/cmd/quickstart.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/cmd/quickstart.py b/sphinx/cmd/quickstart.py
index ce66f7352..21220a22b 100644
--- a/sphinx/cmd/quickstart.py
+++ b/sphinx/cmd/quickstart.py
@@ -216,7 +216,7 @@ class QuickstartRenderer(SphinxRenderer):
def __init__(self, templatedir):
# type: (str) -> None
self.templatedir = templatedir or ''
- super(QuickstartRenderer, self).__init__()
+ super().__init__()
def render(self, template_name, context):
# type: (str, Dict) -> str
@@ -224,7 +224,7 @@ class QuickstartRenderer(SphinxRenderer):
if self.templatedir and path.exists(user_template):
return self.render_from_file(user_template, context)
else:
- return super(QuickstartRenderer, self).render(template_name, context)
+ return super().render(template_name, context)
def ask_user(d):