Skip to content

Fix an issue using securecookie with Python 3#1205

Merged
davidism merged 2 commits into
pallets:masterfrom
grahamlyons:fix-securecookie-bug-with-python-3
Dec 4, 2017
Merged

Fix an issue using securecookie with Python 3#1205
davidism merged 2 commits into
pallets:masterfrom
grahamlyons:fix-securecookie-bug-with-python-3

Conversation

@grahamlyons
Copy link
Copy Markdown
Contributor

When using a string for the secret_key (as per the docs) Python 3 fails with a TypeError.

This catches the error and uses the encode method instead.

Addresses #1204

grahamlyons and others added 2 commits December 4, 2017 10:52
When using a string for the `secret_key` (as per the docs) Python 3
fails with a `TypeError`.

This catches the error and uses the `encode` method instead.

Addresses pallets#1204
@davidism davidism force-pushed the fix-securecookie-bug-with-python-3 branch from f8ad5d1 to 41248bf Compare December 4, 2017 18:53
@davidism davidism merged commit c9e05d0 into pallets:master Dec 4, 2017
@davidism davidism added this to the 0.13 milestone Dec 5, 2017
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Nov 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants