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

Bob Ippolito bob at redivi.com
Wed Feb 26 23:33:31 EST 2003

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

> 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.


More information about the Twisted-Python mailing list