Comment 11 for bug 138349

Revision history for this message
dirken (dirkvranckaert) wrote : Re: python-elementtree pack/usr/share/python-support/python-elementtree/elementtree/age has wrong directory structure

The problem is that all files in directory /var/lib/python-support/python2.5/ should be changed, the imports used in those files (such as gdata.py and atom.py) are:
from elementtree import ElementTree

and this should be changed in every file to:
try:
  from xml.etree import cElementTree # for Python 2.5 users
except ImportError:
  from elementtree import cElementTree

As long as this isn't updated elementree won't work with python 2.5
The patching solution seems to complicated to me so isn't there any other solution?
Or maybe anyone who wants to change all the files? :p