astropy/astropy — pull request #146 by mdboom (2012-02-06 19:36:46+00:00)
Title: vo: Unicode refactoring

This is a major refactoring of io.vo to make the Unicode handling more sane. The current situation came out of a need to support Python 2.5 that no longer exists.

The new version does all XML parsing and writing in Unicode, regardless of Python version. Only the file objects at either end do encoding/decoding to/from utf-8. Care is taken that non-Unicode aware file objects (such as the default ones in Python 2.x) still work transparently.