Closed
Description
Mac OS 10.8.4
Python 3.3.1
itsdangerous 0.23
Trying to reproduce tutorial from http://pythonhosted.org/itsdangerous/:
>>> from itsdangerous import Signer
>>> s = Signer('secret-key')
>>> s.sign('my string')
'my string.wh6tMHxLgJqB6oY1uT73iMlyrOA'
and see:
In [13]: from itsdangerous import Signer
In [14]: s = Signer('secret-key')
In [15]: s.sign('my string')
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-15-6ac9e5e97289> in <module>()
----> 1 s.sign('my string')
.../lib/python3.3/site-packages/itsdangerous-0.23-py3.3.egg/itsdangerous.py in sign(self, value)
326 def sign(self, value):
327 """Signs the given string."""
--> 328 return value + want_bytes(self.sep) + self.get_signature(value)
329
330 def verify_signature(self, value, sig):
TypeError: Can't convert 'bytes' object to str implicitly
Metadata
Metadata
Assignees
Labels
No labels