[XML-SIG] Unicode literals in PyXML

Martin v. Loewis martin@loewis.home.cs.tu-berlin.de
Sat, 28 Apr 2001 09:02:42 +0200


There are currently two files that use Unicode literals in PyXML;
xml.utils.characters, and xml.schema.trex. Unfortunately, this means
that distutils installation of PyXML fails under Python 1.5 - even
though the rest of the package works fine with 1.5.

There may be distutils tricks to avoid these problems, but I'm also
looking for a way to change the sources so that they will install with
Python 1.5 - getting an error if anybody uses them is acceptable.

For xml.utils.characters, wrapping each literal with a unicode() call
is probably safe; I'll best use UTF-16BE for these strings.

As for xml.schema.trex, I'm not sure what the possibilities are. It
*seems* like one could replace all Unicode literals with plain string
literals, but I may be wrong.

Regards,
Martin