can't serialize empty HTML: TypeError: expected string or bytes-like object
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lxml |
New
|
Undecided
|
Unassigned |
Bug Description
Apparently lxml.html.parse() can create completely empty tree;
but if you run lxml.html.
>>> doc = lxml.html.
>>> lxml.html.
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File ".../lib/
html = __bytes_
TypeError: expected string or bytes-like object
Version information:
Python : sys.version_
lxml.etree : (4, 8, 0, 0)
libxml used : (2, 9, 12)
libxml compiled : (2, 9, 12)
libxslt used : (1, 1, 34)
libxslt compiled : (1, 1, 34)