Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 246406

Summary: [PATCH] dev-python/pycrypto-2.0.1-r6 deprecation warnings w/ python-2.6
Product: Gentoo Linux Reporter: Christian Becke <christianbecke>
Component: Current packagesAssignee: Python Gentoo Team <python>
Status: RESOLVED FIXED    
Severity: trivial CC: dschridde+gentoobugs
Priority: High Keywords: Inclusion
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://bugs.launchpad.net/pycrypto/+bug/269429
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 230205    
Attachments: patch from upstream
updated patch now including HMAC fix

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,