Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5dce4f2

Browse files
committed
Silence protected-access
1 parentc0df867 commit5dce4f2

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

‎html5lib/treebuilders/dom.py

Lines changed: 1 addition & 0 deletions
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
ifhasattr(self.dom,'_child_node_types'):
161+
# pylint:disable=protected-access
161162
ifNode.TEXT_NODEnotinself.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)

‎html5lib/treebuilders/etree.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
from __future__importabsolute_import,division,unicode_literals
2+
# pylint:disable=protected-access
3+
24
fromsiximporttext_type
35

46
importre

‎html5lib/treebuilders/etree_lxml.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"""
1111

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

1415
importwarnings
1516
importre

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp