When converting feed object to a string, using atom_str or rss_str methods, with etree.tostring method, feed instead of doc is supplied. In this case, changes applied outside the was lost (e.g., adding a processing instruction <?xml-stylesheet href="rss.xsl" type="text/xsl"?> as sibling to <rss>).
The feed object has now been replaced by the doc object in both the _create_atom and _create_rss methods, ensuring the correct conversion and preventing possible lost of information in the feed generation.
When converting was lost (e.g., adding a processing instruction
feed
object to a string, usingatom_str
orrss_str
methods, withetree.tostring
method,feed
instead ofdoc
is supplied. In this case, changes applied outside the<?xml-stylesheet href="rss.xsl" type="text/xsl"?>
as sibling to<rss>
).The
feed
object has now been replaced by thedoc
object in both the_create_atom
and_create_rss
methods, ensuring the correct conversion and preventing possible lost of information in the feed generation.