Doc: In lxml.html.tostring() encoding "unicode" for Python 3
Bug #1284809 reported by
Bug Reporter
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lxml |
Fix Released
|
Low
|
scoder |
Bug Description
In Python 3 unicode changed to str
In few places, examples continue to describe unicode instead of str
"
The ``encoding`` argument controls the output encoding (defauts to
ASCII, with &#...; character references for any characters outside
of ASCII). Note that you can pass the name ``'unicode'`` as
"
Python : sys.version_
lxml.etree : (3, 2, 4, 0)
libxml used : (2, 9, 1)
libxml compiled : (2, 9, 1)
libxslt used : (1, 1, 28)
libxslt compiled : (1, 1, 28)
To post a comment you must log in.
"unicode" is the correct name here. "str" would be ambiguous.