Closed
Description
This code works in Python 2 but doesn't seem to work properly in Python 3. Not a particularly complex example.
Python 3.6.1 (default, Apr 4 2017, 09:40:21)
[GCC 4.2.1 Compatible Apple LLVM 8.1.0 (clang-802.0.38)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from itsdangerous import Signer
>>> s = Signer('AAAAAAAAAAAAAAAAAAAA')
>>> s.sign('user@user.com')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/kchung/.virtualenvs/ctfd3/lib/python3.6/site-packages/itsdangerous.py", line 353, in sign
return value + want_bytes(self.sep) + self.get_signature(value)
TypeError: must be str, not bytes
>>>
Metadata
Metadata
Assignees
Labels
No labels