Skip to content

Commit 2c8e0ec

Browse files
committed
Call super().f() rather than Base.f(self)
1 parent 2036738 commit 2c8e0ec

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

html5lib/treebuilders/etree.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ def data(self, value):
166166

167167
class DocumentType(Element):
168168
def __init__(self, name, publicId, systemId):
169-
Element.__init__(self, "<!DOCTYPE>")
169+
super(DocumentType, self).__init__("<!DOCTYPE>")
170170
self._element.text = name
171171
self.publicId = publicId
172172
self.systemId = systemId
@@ -191,11 +191,11 @@ def systemId(self, value):
191191

192192
class Document(Element):
193193
def __init__(self):
194-
Element.__init__(self, "DOCUMENT_ROOT")
194+
super(Document, self).__init__("DOCUMENT_ROOT")
195195

196196
class DocumentFragment(Element):
197197
def __init__(self):
198-
Element.__init__(self, "DOCUMENT_FRAGMENT")
198+
super(DocumentFragment, self).__init__("DOCUMENT_FRAGMENT")
199199

200200
def testSerializer(element):
201201
rv = []

0 commit comments

Comments
 (0)