summaryrefslogtreecommitdiff
path: root/sphinx/util/template.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2018-12-16 19:46:47 +0900
committerGitHub <noreply@github.com>2018-12-16 19:46:47 +0900
commit2597c4174e386552449991a0a247340de3dbcdcc (patch)
tree9941080af8cb6e672846c0030ed621c31204fd1f /sphinx/util/template.py
parent6395c7d242eda62d0803aa656de82267ebea1a47 (diff)
parentade973f4e376e6eb573be70fcce4f9b21faec500 (diff)
downloadsphinx-git-2597c4174e386552449991a0a247340de3dbcdcc.tar.gz
Merge pull request #5796 from jdufresne/super
Use Python 3 super() argument-less syntax
Diffstat (limited to 'sphinx/util/template.py')
-rw-r--r--sphinx/util/template.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/sphinx/util/template.py b/sphinx/util/template.py
index 49afc2df2..7c98654ed 100644
--- a/sphinx/util/template.py
+++ b/sphinx/util/template.py
@@ -44,7 +44,7 @@ class FileRenderer(BaseRenderer):
def __init__(self, search_path):
# type: (str) -> None
loader = SphinxFileSystemLoader(search_path)
- super(FileRenderer, self).__init__(loader)
+ super().__init__(loader)
@classmethod
def render_from_file(cls, filename, context):
@@ -59,7 +59,7 @@ class SphinxRenderer(FileRenderer):
# type: (str) -> None
if template_path is None:
template_path = os.path.join(package_dir, 'templates')
- super(SphinxRenderer, self).__init__(template_path)
+ super().__init__(template_path)
@classmethod
def render_from_file(cls, filename, context):
@@ -71,7 +71,7 @@ class LaTeXRenderer(SphinxRenderer):
def __init__(self):
# type: () -> None
template_path = os.path.join(package_dir, 'templates', 'latex')
- super(LaTeXRenderer, self).__init__(template_path)
+ super().__init__(template_path)
# use texescape as escape filter
self.env.filters['e'] = texescape.escape