On Fri, 2010-02-12 at 10:56 -0500, Rob Crittenden wrote:
Fix a deprecation warning importing sha.
rob
nack. There is no `sha` attribute in the `hashlib` module; instead,
you'll need to use `hashlib.sha1`, like this:
try:
from hashlib import sha1 as sha
except ImportError:
On 02/12/2010 02:57 PM, Jason Gerard DeRose wrote:
On Fri, 2010-02-12 at 10:56 -0500, Rob Crittenden wrote:
Fix a deprecation warning importing sha.
rob
nack. There is no `sha` attribute in the `hashlib` module; instead,
you'll need to use `hashlib.sha1`, like this:
try:
from