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:
authorJon Dufresne <jon.dufresne@gmail.com>2018-12-15 19:25:47 +0300
committerJon Dufresne <jon.dufresne@gmail.com>2018-12-15 19:35:55 +0300
commitade973f4e376e6eb573be70fcce4f9b21faec500 (patch)
tree5d185c9a880e77db1e4a73131afaae90b1ad1c77 /sphinx/roles.py
parent6113261948523ef6cad74621dec10e0cbf0189c7 (diff)
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/roles.py')
-rw-r--r--sphinx/roles.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/sphinx/roles.py b/sphinx/roles.py
index 59f5b297e..0c02f230e 100644
--- a/sphinx/roles.py
+++ b/sphinx/roles.py
@@ -171,8 +171,7 @@ class XRefRole:
class AnyXRefRole(XRefRole):
def process_link(self, env, refnode, has_explicit_title, title, target):
# type: (BuildEnvironment, nodes.Element, bool, str, str) -> Tuple[str, str]
- result = super(AnyXRefRole, self).process_link(env, refnode, has_explicit_title,
- title, target)
+ result = super().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