zopefoundation / zope.publisher

Map requests from HTTP/WebDAV clients, web browsers, XML-RPC and FTP clients onto Python objects
Other
3 stars 13 forks source link

Get rid of _u() #45

Closed mgedmin closed 5 years ago

mgedmin commented 5 years ago

Where we know we have bytes, we can call bytes.decode() directly.

The one place where we don't know what we have, we'll have to keep calling unicode(). (That place is handling string exceptions AFAICT, which are not allowed on Python 3.)