[Checkins] [zopefoundation/zope.publisher] f3fd6e: Get rid of _u()
Marius Gedminas
noreply at github.com
Wed Jul 10 15:14:19 CEST 2019
Branch: refs/heads/refactor
Home: https://github.com/zopefoundation/zope.publisher
Commit: f3fd6eecd21c6a9230c81ea6156780dcaf51ea61
https://github.com/zopefoundation/zope.publisher/commit/f3fd6eecd21c6a9230c81ea6156780dcaf51ea61
Author: Marius Gedminas <marius at gedmin.as>
Date: 2019-07-10 (Wed, 10 Jul 2019)
Changed paths:
M src/zope/publisher/_compat.py
M src/zope/publisher/browser.py
M src/zope/publisher/http.py
Log Message:
-----------
Get rid of _u()
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.)
More information about the checkins
mailing list