diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2017-09-14 13:45:31 (GMT) |
---|---|---|
committer | Mariatta <Mariatta@users.noreply.github.com> | 2017-09-14 13:45:31 (GMT) |
commit | c8b6506404540eb06c45a51b04ccc102f8b92813 (patch) | |
tree | 5540dfa8bc33b5e653aa850a06b282f891db43e6 /Lib/urllib/request.py | |
parent | 472cc9f366ef16cab72eed21bdc6a24f194fc03a (diff) | |
download | cpython-c8b6506404540eb06c45a51b04ccc102f8b92813.zip cpython-c8b6506404540eb06c45a51b04ccc102f8b92813.tar.gz cpython-c8b6506404540eb06c45a51b04ccc102f8b92813.tar.bz2 |
Improve code examples in hashlib cookie signing (GH-3562) (GH-3566)
The `blake2b` function does not take the `data` keyword argument.
The hex digest returned by sign was a string, whereas compare_digest expects bytes-like objects.
Typo fix: compare_digesty -> compare_digest
(cherry picked from commit 312ffead1eb272535e021e248b5d74ab04b2e72e)
Diffstat (limited to 'Lib/urllib/request.py')
0 files changed, 0 insertions, 0 deletions