coto/gae-boilerplate — pull request #185 by kordless (2012-10-30 23:55:06+00:00)
Title: Fixing unicode issues with hmac.py on LinkedIn association

Error was:
File "C:\Python27\lib\hmac.py", line 72, in __init__
self.outer.update(key.translate(trans_5C))
TypeError: character mapping must return integer, None or unicode

This was attributed to obtaining a unicode token_secret and trying to pass it into hmac.new() on line 786 of linkedin.py.

See HMAC's lack of utf-8 support explained here:
http://www.terminally-incoherent.com/blog/2010/05/06/character-mapping-m
ust-return-integer-none-or-unicode/