Pylons/pyramid — pull request #665 by nandoflorestan (2012-08-25 11:49:11+00:00)
Title: CSRF token not being converted to unicode properly.

On Python 3.3:

>>> my_bytestring = b'Nobody expects this conversion to work'
>>> str(my_bytestring)
"b'Nobody expects this conversion to work'"

Instead of the above, one must call .decode('ascii').

All tests pass, on Python 2.7 and 3.3b2.