hmac.new changed signature between python 2.4 and 2.5
|Reported by:||jdunck||Owned by:||nobody|
|Cc:||Triage Stage:||Ready for checkin|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Basically, in 2.4, hmac.new expects digestmod to be an object with a
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.