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

Commit82d623b

Browse files
committed
Silence redefined-variable-type
1 parent1b86ccb commit82d623b

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

‎html5lib/html5parser.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def reset(self):
121121
self.phase.insertHtmlElement()
122122
self.resetInsertionMode()
123123
else:
124-
self.innerHTML=False
124+
self.innerHTML=False# pylint:disable=redefined-variable-type
125125
self.phase=self.phases["initial"]
126126

127127
self.lastPhase=None

‎html5lib/tokenizer.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1716,7 +1716,7 @@ def cdataSectionState(self):
17161716
else:
17171717
data.append(char)
17181718

1719-
data="".join(data)
1719+
data="".join(data)# pylint:disable=redefined-variable-type
17201720
# Deal with null here rather than in the parser
17211721
nullCount=data.count("\u0000")
17221722
ifnullCount>0:

‎html5lib/treewalkers/lxmletree.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ def __len__(self):
117117

118118
classTreeWalker(_base.NonRecursiveTreeWalker):
119119
def__init__(self,tree):
120+
# pylint:disable=redefined-variable-type
120121
ifhasattr(tree,"getroot"):
121122
self.fragmentChildren=set()
122123
tree=Root(tree)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp