On Fri, 9 Feb 2007 19:50:18 +0100, Matthias Saou <[EMAIL PROTECTED]> wrote: > Matthias Saou wrote : > >> http://ftp.es6.freshrpms.net/pub/freshrpms/fedora/linux/development/ >> (today's builds with the appearance of coherence are untested!) >
Wow, that was quick! Thanks! > Just a quick followup : I've packaged all of the coherence requirements > now, but also had to add an ugly patch to coherence itself in order > to load with Python 2.5. > > It seems like coherence isn't ready at all for Python 2.5... what is > the correct way to cleanly have ElementTree working for as many > versions of python as possible? Use something like this? (inspired by > what Philippe committed to Elisa today) : > > if sys.hexversion >= 0x20500f0: > import xml.etree.ElementTree > else: > import elementtree.ElementTree > There's a ticket for Python2.5 support in Coherence' Trac. But last time I checked it was scheduled for 0.2 release. However the hack above should work for all Python versions ElementTree is supporting. > If so, I could probably provide a clean patch to the coherence > developers, since for now I've just replaced the import lines. > You can post a patch there: https://coherence.beebits.net/ticket/24 I'm sure Frank will be happy to apply it :) Philippe
