#231 Python 2.5 Expat (XML) Compatibility

v2.0
open
nobody
zsi (169)
5
2007-12-22
2007-12-22
No

Python 2.5 has Expat built-in to the distribution for XML processing, but it does not contain a xml.dom.ext.reader package. I will not install the PyExpat package to get this as it would have a namespace conflict.

I tracked down the two locations where this is used and put in conditional code so that if Python 2.5 is being used then it will parse from the built in instead of trying to find the PyExpat packages.

The diff for both files is attached. I do not know what the full effects of this change will have.

Discussion

  • diff of changes made.

     
    Attachments
  • Logged In: YES
    user_id=1553215
    Originator: YES

    Further information: With these changes to work with Python 2.5 the PyXML dependency must be removed EGG-INFO/requires.txt to allow for proper execution.