]> granicus.if.org Git - python/commit
Improve code examples in hashlib cookie signing (GH-3562) (GH-3566)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 14 Sep 2017 13:45:31 +0000 (06:45 -0700)
committerMariatta <Mariatta@users.noreply.github.com>
Thu, 14 Sep 2017 13:45:31 +0000 (06:45 -0700)
commitc8b6506404540eb06c45a51b04ccc102f8b92813
tree5540dfa8bc33b5e653aa850a06b282f891db43e6
parent472cc9f366ef16cab72eed21bdc6a24f194fc03a
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)
Doc/library/hashlib.rst