ports/135832: security/py-pycrypto: Deprecation warnings when used with Python 2.6.

Keith Gaughan kmgaughan at eircom.net
Wed Jul 15 13:30:04 UTC 2009


The following reply was made to PR ports/135832; it has been noted by GNATS.

From: Keith Gaughan <kmgaughan at eircom.net>
To: bug-followup at FreeBSD.org
Cc:  
Subject: Re: ports/135832: security/py-pycrypto: Deprecation warnings when
 used with Python 2.6.
Date: Wed, 15 Jul 2009 13:59:25 +0100

 The patch that I provided is actually a *backport* from the current
 development version of PyCrypto (as evidenced by the link I provided to
 its git repository), so it's safe to say that the PyCrypto developers
 themselves consider it to be safe and good.
  
 The patch doesn't actually do any warning suppression. What it does is
 first try the non-deprecated method of using hashlib (which works in and
 is recommended for Python 2.5 and after), and then, if that fails (i.e.
 in pre-2.5 version of Python), it uses the old deprecated (see PEP-0004)
 method of importing the md5 and sha modules instead.
  
 Because quite a bit of code out there uses PyCrypto, requiring the use
 of 2.5 would probably cause more trouble than good.
 
 -- 
 Keith Gaughan - kmgaughan at eircom.net - http://talideon.com/ - CF9F6473
 With Age comes Wisdom--but sometimes Age travels alone.


More information about the freebsd-python mailing list