Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sphinx-doc/sphinx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2018-11-27 19:57:48 +0300
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2018-11-27 19:58:32 +0300
commit31c4d06a22e92d28f94200063a3921b688e330c2 (patch)
tree21777fb0c6c102a0533eab65d40e700e79ea0c4e /sphinx/roles.py
parentc76885631ddf9edbf4e6edcc37ebc29e3e583627 (diff)
refactor: Use super() to call methods of superclass
Diffstat (limited to 'sphinx/roles.py')
-rw-r--r--sphinx/roles.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/roles.py b/sphinx/roles.py
index 30b41438f..0c1f74cef 100644
--- a/sphinx/roles.py
+++ b/sphinx/roles.py
@@ -173,8 +173,8 @@ class XRefRole:
class AnyXRefRole(XRefRole):
def process_link(self, env, refnode, has_explicit_title, title, target):
# type: (BuildEnvironment, nodes.reference, bool, unicode, unicode) -> Tuple[unicode, unicode] # NOQA
- result = XRefRole.process_link(self, env, refnode, has_explicit_title,
- title, target)
+ result = super(AnyXRefRole, self).process_link(env, refnode, has_explicit_title,
+ title, target)
# add all possible context info (i.e. std:program, py:module etc.)
refnode.attributes.update(env.ref_context)
return result