Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Jul 2009 13:30:03 GMT
From:      Keith Gaughan <kmgaughan@eircom.net>
To:        freebsd-python@FreeBSD.org
Subject:   Re: ports/135832: security/py-pycrypto: Deprecation warnings when used with Python 2.6.
Message-ID:  <200907151330.n6FDU3Qm060430@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/135832; it has been noted by GNATS.

From: Keith Gaughan <kmgaughan@eircom.net>
To: bug-followup@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@eircom.net - http://talideon.com/ - CF9F6473
 With Age comes Wisdom--but sometimes Age travels alone.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200907151330.n6FDU3Qm060430>