[issue16063] HMAC trans_5C is a string, causing a TypeError

2012-10-03 Thread Adam Glenn
Adam Glenn added the comment: I did some more testing and verified that this is a problem caused by the fact that trans_5C is a string and not unicode. It also happens when trans_36 is sent to key.translate(). Python 2.7.3 (default, Aug 1 2012, 05:14:39) [GCC 4.6.3] on linux2 Type "

[issue16063] HMAC trans_5C is a string, causing a TypeError

2012-09-27 Thread Adam Glenn
New submission from Adam Glenn: When passing 2 unicode objects to hmac.new() I'm getting "TypeError: character mapping must return integer, None or unicode" I've tried this using hashlib.sha1 and hashlib.md5 and the behavior is the same. What I think is happening is that