diff options
author | Jon Dufresne <jon.dufresne@gmail.com> | 2018-12-15 08:25:47 -0800 |
---|---|---|
committer | Jon Dufresne <jon.dufresne@gmail.com> | 2018-12-15 08:35:55 -0800 |
commit | ade973f4e376e6eb573be70fcce4f9b21faec500 (patch) | |
tree | 5d185c9a880e77db1e4a73131afaae90b1ad1c77 /sphinx/directives/other.py | |
parent | 6113261948523ef6cad74621dec10e0cbf0189c7 (diff) | |
download | sphinx-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/directives/other.py')
-rw-r--r-- | sphinx/directives/other.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/directives/other.py b/sphinx/directives/other.py index 89fdd4df5..c6d36d8f2 100644 --- a/sphinx/directives/other.py +++ b/sphinx/directives/other.py @@ -387,11 +387,11 @@ class Include(BaseInclude, SphinxDirective): if self.arguments[0].startswith('<') and \ self.arguments[0].endswith('>'): # docutils "standard" includes, do not do path processing - return super(Include, self).run() + return super().run() rel_filename, filename = self.env.relfn2path(self.arguments[0]) self.arguments[0] = filename self.env.note_included(filename) - return super(Include, self).run() + return super().run() def setup(app): |