Show More
@@ -88,7 +88,7 def add_anchor(html): | |||||
88 | # Known issue of Python3.x, ElementTree.tostring() returns a byte string |
|
88 | # Known issue of Python3.x, ElementTree.tostring() returns a byte string | |
89 | # instead of a text string. See issue http://bugs.python.org/issue10942 |
|
89 | # instead of a text string. See issue http://bugs.python.org/issue10942 | |
90 | # Workaround is to make sure the bytes are casted to a string. |
|
90 | # Workaround is to make sure the bytes are casted to a string. | |
91 | return py3compat.bytes_to_str(ElementTree.tostring(h)) |
|
91 | return py3compat.str_to_unicode(py3compat.bytes_to_str(ElementTree.tostring(h))) | |
92 |
|
92 | |||
93 |
|
93 | |||
94 | def strip_dollars(text): |
|
94 | def strip_dollars(text): |
General Comments 0
You need to be logged in to leave comments.
Login now