• Vincent Ardisson's avatar
    [caissedepargne] do not compare bytes and unicode on cookies · e2e0a04e
    Vincent Ardisson authored
    In python2, cookies from a cookiejar are bytes, but we compare them to a
    unicode string (unicode_literals). This is not a problem until there are
    non-ascii bytes.
    
    Unfortunately, sometimes the caissedepargne/palatine site returns
    cookies in utf-8. So we end with non-ascii bytes.
    
    In python3, it doesn't crash, but requests or the lower layers interpret
    cookies as latin-1 instead of utf-8, which yields a few garbled
    characters, but fortunately we do not care about that part of the
    cookie.
    
    Closes: 57830@sibi
    e2e0a04e
Name
Last commit
Last update
.ci Loading commit data...
contrib Loading commit data...
desktop Loading commit data...
docs Loading commit data...
icons Loading commit data...
man Loading commit data...
modules Loading commit data...
tools Loading commit data...
weboob Loading commit data...
.editorconfig Loading commit data...
.gitignore Loading commit data...
.gitlab-ci.yml Loading commit data...
.mailmap Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
COPYING Loading commit data...
COPYING.LESSER Loading commit data...
ChangeLog Loading commit data...
INSTALL Loading commit data...
MANIFEST.in Loading commit data...
MANIFEST.in.modules Loading commit data...
README.md Loading commit data...
build.mk Loading commit data...
setup.cfg Loading commit data...
setup.py Loading commit data...