#12362 closed (fixed)
hmac.new changed signature between python 2.4 and 2.5
Reported by: | Jeremy Dunck | Owned by: | nobody |
---|---|---|---|
Component: | Contrib apps | Version: | dev |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Ready for checkin | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Basically, in 2.4, hmac.new expects digestmod to be an object with a
callable .new().
In 2.5, it expects just a callable.
hashcompat supplied a callable (only) in both cases.
I added *_hmac to hashcompat to make hmac.new work in both cases.
Patch attached; it's tiny.
Attachments (1)
Change History (3)
by , 15 years ago
Attachment: | messages-hmac-py2.4.diff added |
---|
comment:1 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Existing python 2.4 tests cover this, so no new tests are needed.