Le lundi 12 février 2007 à 13:37 +0100, Thomas Vander Stichele a écrit :
> Hi,
> 
> > > 
> > > 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
> > > 
> 
> I hope that if you do this, you do this in a completely separate
> compatibility module, and not all over the code, right ? :)
> 

It's only in one place in Elisa, so until this number grows, there's no
need for a compatibility module, is there?

However, in Coherence I think there's a need for such a module :)

Philippe

Reply via email to