-
Denis Laxalde authored
When non-ASCII characters are present in "links" data, the previous code (as it used bytes for string formatting) would try to encode this data and may thus fail with a UnicodeEncodeError. To prevent this, we use unicode string when formatting links parameters (i.e. add a u'' prefix). Nevertheless, we must still return a "native" string for validity with WSGI specification (this is either bytes on Python 2 or unicode string on Python 3): https://www.python.org/dev/peps/pep-3333/#a-note-on-string-types https://docs.pylonsproject.org/projects/webtest/en/latest/api.html#module-webtest.lint Added regression tests accordingly.
2ab0e1f13f16