allow unicode URLs on Python 2
Before adoption: this commit came in with the history the project adopted, so no landing records it.
on Python 2 u'é'.decode('utf8') fails with UnicodeEncodeError, but only AttributeError is caught. This only calls decode on known bytes objects.
authored by MinRK · committed by MinRK · parent 5850b1f · Browse files · 2 files+10 added−2 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
2 files+10 added−2 removed
- other:+10 added−2 removed