Skip to content

Commit 5dce4f2

Browse files
committed
Silence protected-access
1 parent c0df867 commit 5dce4f2

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

Diff for: html5lib/treebuilders/dom.py

+1
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ def insertText(self, data, parent=None):
158158
else:
159159
# HACK: allow text nodes as children of the document node
160160
if hasattr(self.dom, '_child_node_types'):
161+
# pylint:disable=protected-access
161162
if Node.TEXT_NODE not in self.dom._child_node_types:
162163
self.dom._child_node_types = list(self.dom._child_node_types)
163164
self.dom._child_node_types.append(Node.TEXT_NODE)

Diff for: html5lib/treebuilders/etree.py

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
from __future__ import absolute_import, division, unicode_literals
2+
# pylint:disable=protected-access
3+
24
from six import text_type
35

46
import re

Diff for: html5lib/treebuilders/etree_lxml.py

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"""
1111

1212
from __future__ import absolute_import, division, unicode_literals
13+
# pylint:disable=protected-access
1314

1415
import warnings
1516
import re

0 commit comments

Comments
 (0)