Skip to content

Commit 4fa9fda

Browse files
committed
Ensure that no implicit unicode-> ascii conversion is attempted in lxml treebuilder
1 parent e834288 commit 4fa9fda

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/html5lib/treewalkers/lxmletree.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,9 @@ def getparent(self):
9696
def __str__(self):
9797
return str(self.obj)
9898

99+
def __unicode__(self):
100+
return unicode(self.obj)
101+
99102
def __len__(self):
100103
return len(self.obj)
101104

0 commit comments

Comments
 (0)