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

Commitb5c082a

Browse files
committed
Fix#190: etree on Py2 shouldn't assert unicode strings.
1 parentc0a6375 commitb5c082a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎html5lib/treewalkers/etree.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
importre
1212

13-
fromsiximporttext_type
13+
fromsiximportstring_types
1414

1515
from .import_base
1616
from ..utilsimportmoduleFactoryFactory
@@ -58,7 +58,7 @@ def getNodeDetails(self, node):
5858
return_base.COMMENT,node.text
5959

6060
else:
61-
asserttype(node.tag)==text_type,type(node.tag)
61+
assertisinstance(node.tag,string_types),type(node.tag)
6262
# This is assumed to be an ordinary element
6363
match=tag_regexp.match(node.tag)
6464
ifmatch:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp