Re: [Freeipa-devel] [PATCH] 377 fix deprecation warning

2010-02-12 Thread Jason Gerard DeRose
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:

Re: [Freeipa-devel] [PATCH] 377 fix deprecation warning

2010-02-12 Thread John Dennis
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