[Checkins] [zopefoundation/zope.publisher] 696e59: Get rid of _u()
Marius Gedminas
noreply at github.com
Wed Jul 10 16:01:32 CEST 2019
Branch: refs/heads/refactor
Home: https://github.com/zopefoundation/zope.publisher
Commit: 696e59a9d40b7b1cce317c800ac686eda871e653
https://github.com/zopefoundation/zope.publisher/commit/696e59a9d40b7b1cce317c800ac686eda871e653
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