[Twisted-Python] minor patch to twisted.html.web

Bob Ippolito bob at redivi.com
Wed Feb 26 21:33:31 MST 2003


On Wednesday, Feb 26, 2003, at 23:34 America/New_York, Clark C. Evans 
wrote:

> When calling escape, this function seems to assume that
> the object being called is a string; although a user
> program could do this, an explict conversion here is
> more generous with the input arguments.

What about unicode?  Ignoring the fact that unicode characters aren't 
escaped properly by this function (yet), if you str(text) you lose 
everything but 7bit ascii characters at best, and could very well raise 
an exception in the conversion to str.

-bob





More information about the Twisted-Python mailing list