[New-bugs-announce] [issue16063] HMAC trans_5C is a string, causing a TypeError

Adam Glenn report at bugs.python.org
Thu Sep 27 19:21:13 CEST 2012


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 the trans_5C join at the top of this module is a string so it's causing the type error when I try to generate the new hmac object at line 72.

----------
components: None
messages: 171384
nosy: Adam.Glenn
priority: normal
severity: normal
status: open
title: HMAC trans_5C is a string, causing a TypeError
type: behavior
versions: Python 2.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16063>
_______________________________________


More information about the New-bugs-announce mailing list