summaryrefslogtreecommitdiff
path: root/sphinx/directives/patches.py
diff options
context:
space:
mode:
Diffstat (limited to 'sphinx/directives/patches.py')
-rw-r--r--sphinx/directives/patches.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/sphinx/directives/patches.py b/sphinx/directives/patches.py
index ca09cf396..b1104fc97 100644
--- a/sphinx/directives/patches.py
+++ b/sphinx/directives/patches.py
@@ -33,7 +33,7 @@ class Figure(images.Figure):
def run(self):
# type: () -> List[nodes.Node]
name = self.options.pop('name', None)
- result = images.Figure.run(self)
+ result = super(Figure, self).run()
if len(result) == 2 or isinstance(result[0], nodes.system_message):
return result
@@ -55,7 +55,7 @@ class Figure(images.Figure):
class Meta(html.Meta, SphinxDirective):
def run(self):
# type: () -> List[nodes.Node]
- result = html.Meta.run(self)
+ result = super(Meta, self).run()
for node in result:
if (isinstance(node, nodes.pending) and
isinstance(node.details['nodes'][0], html.MetaBody.meta)):
@@ -77,7 +77,7 @@ class RSTTable(tables.RSTTable):
def make_title(self):
# type: () -> Tuple[nodes.title, List[nodes.system_message]]
- title, message = tables.RSTTable.make_title(self)
+ title, message = super(RSTTable, self).make_title()
if title:
set_source_info(self, title)
@@ -91,7 +91,7 @@ class CSVTable(tables.CSVTable):
def make_title(self):
# type: () -> Tuple[nodes.title, List[nodes.system_message]]
- title, message = tables.CSVTable.make_title(self)
+ title, message = super(CSVTable, self).make_title()
if title:
set_source_info(self, title)
@@ -105,7 +105,7 @@ class ListTable(tables.ListTable):
def make_title(self):
# type: () -> Tuple[nodes.title, List[nodes.system_message]]
- title, message = tables.ListTable.make_title(self)
+ title, message = super(ListTable, self).make_title()
if title:
set_source_info(self, title)