Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 246406 - [PATCH] dev-python/pycrypto-2.0.1-r6 deprecation warnings w/ python-2.6
Summary: [PATCH] dev-python/pycrypto-2.0.1-r6 deprecation warnings w/ python-2.6
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High trivial (vote)
Assignee: Python Gentoo Team
URL: https://bugs.launchpad.net/pycrypto/+...
Whiteboard:
Keywords: Inclusion
Depends on:
Blocks: python-2.6
  Show dependency tree
 
Reported: 2008-11-11 15:49 UTC by Christian Becke
Modified: 2009-03-01 08:25 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch from upstream (pycrypto-2.0.1-python-2.6-hashlib.patch,1.75 KB, patch)
2008-11-11 15:50 UTC, Christian Becke
Details | Diff
updated patch now including HMAC fix (pycrypto-2.0.1-python-2.6-hashlib.patch,2.58 KB, patch)
2008-11-14 08:44 UTC, Christian Becke
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Becke 2008-11-11 15:49:38 UTC
The Crypto.Hash.MD5 and Crypto.Hash.SHA modules from dev-python/pycrypto import the md5 and sha standard library modules deprecated in python-2.6 in favor of hashlib, generating deprecation warnings.
Attached upstream patch [1] fixes the problem.

[1] http://gitweb.pycrypto.org/?p=crypto/pycrypto-2.x.git;a=commitdiff;h=d2311689910240e425741a546576129f4c9735e2
Comment 1 Christian Becke 2008-11-11 15:50:28 UTC
Created attachment 171431 [details, diff]
patch from upstream
Comment 2 Steev Klimaszewski (RETIRED) gentoo-dev 2008-11-13 16:36:49 UTC
There is an additional patch as well for this issue -  

http://gitweb.pycrypto.org/?p=crypto/pycrypto-2.0.x.git;a=commitdiff_plain;h=84b793416b52311643bfd456a4544444afbfb5da

or did you combine the two?
Comment 3 Christian Becke 2008-11-14 08:44:16 UTC
Created attachment 171698 [details, diff]
updated patch now including HMAC fix

Now I did... :) Works all right.
Comment 4 Jesus Rivero (RETIRED) gentoo-dev 2009-03-01 08:25:47 UTC
Hello, 

    pycrypto-2.0.1-r7 in CVS now. Christian, thanks a lot for reporting and for the patches. Thanks Steev as well. 

   Best regards,