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/writers/text.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/writers/text.py')
-rw-r--r-- | sphinx/writers/text.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/writers/text.py b/sphinx/writers/text.py index 1815e18fb..cff7b517d 100644 --- a/sphinx/writers/text.py +++ b/sphinx/writers/text.py @@ -382,7 +382,7 @@ class TextWriter(writers.Writer): def __init__(self, builder): # type: (TextBuilder) -> None - super(TextWriter, self).__init__() + super().__init__() self.builder = builder def translate(self): @@ -397,7 +397,7 @@ class TextTranslator(SphinxTranslator): def __init__(self, document, builder): # type: (nodes.document, TextBuilder) -> None - super(TextTranslator, self).__init__(builder, document) + super().__init__(builder, document) newlines = self.config.text_newlines if newlines == 'windows': |