[Yum-devel] [PATCH] new dump_xml methods for repodata and repomd and related changes

Seth Vidal skvidal at fedoraproject.org
Thu Apr 15 12:08:05 UTC 2010



On Thu, 15 Apr 2010, Ville Skyttä wrote:

> On Wednesday 14 April 2010, Mike Bonnet wrote:
>
>> We're sure self.revision will never be a unicode object?  Maybe it needs
>> a to_xml() also?  Unexpected coercions to unicode were a major source of
>> problems with mergerepos in Koji, so I'm a little paranoid about this.
>
> Doesn't Python have some kind of a easy-to-use library for outputting XML that
> would just do to the right thing that could be used instead of string
> concatenation and having to worry about these things and escaping in general?

Yes, it does. It makes things much bigger and slower in my experience.

Not worth the effort for this at all.

-sv


More information about the Yum-devel mailing list