diff options
Diffstat (limited to 'sphinx/parsers.py')
-rw-r--r-- | sphinx/parsers.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/parsers.py b/sphinx/parsers.py index 510d20bcc..ccaba19cb 100644 --- a/sphinx/parsers.py +++ b/sphinx/parsers.py @@ -66,7 +66,7 @@ class RSTParser(docutils.parsers.rst.Parser): """Sphinx's reST parser replaces a transform class for smart-quotes by own's refs: sphinx.io.SphinxStandaloneReader""" - transforms = docutils.parsers.rst.Parser.get_transforms(self) + transforms = super(RSTParser, self).get_transforms() transforms.remove(SmartQuotes) return transforms @@ -88,7 +88,7 @@ class RSTParser(docutils.parsers.rst.Parser): self.finish_parse() else: # otherwise, inputstring might be a string. It will be handled by superclass. - docutils.parsers.rst.Parser.parse(self, inputstring, document) + super(RSTParser, self).parse(inputstring, document) def setup(app): |