summaryrefslogtreecommitdiff
path: root/sphinx/writers/xml.py
diff options
context:
space:
mode:
authorJon Dufresne <jon.dufresne@gmail.com>2018-11-11 12:55:22 -0800
committerJon Dufresne <jon.dufresne@gmail.com>2018-11-11 13:07:12 -0800
commit710ca3d7c3a41296861b0be79b9904246477968d (patch)
tree6cd7739bf90ec0fca6c0d0b42e7e324f431af82b /sphinx/writers/xml.py
parent42d52d6a919fafdcd07ebea4fd983bf3055314fa (diff)
downloadsphinx-git-710ca3d7c3a41296861b0be79b9904246477968d.tar.gz
Use super() to call parent class's method
Diffstat (limited to 'sphinx/writers/xml.py')
-rw-r--r--sphinx/writers/xml.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/writers/xml.py b/sphinx/writers/xml.py
index f94fe847c..1fa0ecee9 100644
--- a/sphinx/writers/xml.py
+++ b/sphinx/writers/xml.py
@@ -22,7 +22,7 @@ class XMLWriter(BaseXMLWriter):
def __init__(self, builder):
# type: (Builder) -> None
- BaseXMLWriter.__init__(self)
+ super(XMLWriter, self).__init__()
self.builder = builder
self.translator_class = self.builder.get_translator_class()
@@ -49,7 +49,7 @@ class PseudoXMLWriter(writers.Writer):
def __init__(self, builder):
# type: (Builder) -> None
- writers.Writer.__init__(self)
+ super(PseudoXMLWriter, self).__init__()
self.builder = builder
def translate(self):