8000 HTMLInputStream.char() is expected to return unicode single-character… · awesome-python/html5lib-python@33c7903 · GitHub
[go: up one dir, main page]

Skip to content

Commit 33c7903

Browse files
committed
HTMLInputStream.char() is expected to return unicode single-character strings.
--HG-- extra : convert_revision : svn%3Aacbfec75-9323-0410-a652-858a13e371e0/trunk%40685
1 parent ef0112c commit 33c7903

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/inputstream.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ def char(self):
185185
# record where newlines occur so that the position method
186186
# can tell where it is
187187
if c == '\n': self.newLines.append(self.tell - 1)
188-
return c
188+
return unicode(c)
189189
except:
190190
return EOF
191191

0 commit comments

Comments
 (0)
0