Under Python 3 atom_str and rss_str in feed.py both return a bytestring when their docstrings indicate they return strings. This seems to be because xml.etree.ElementTree.tostring returns a bytestring unless the encoding='unicode' argument is supplied. I did try passing in this parameter but it doesn't seem like lxml likes this: ValueError: Serialisation to unicode must not request an XML declaration
Under Python 3
atom_str
andrss_str
infeed.py
both return a bytestring when their docstrings indicate they return strings. This seems to be becausexml.etree.ElementTree.tostring
returns a bytestring unless theencoding='unicode'
argument is supplied. I did try passing in this parameter but it doesn't seem like lxml likes this:ValueError: Serialisation to unicode must not request an XML declaration