Re: [PATCH next 2/2] Remove python 2.5'isms

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Heya,

On Thu, Jun 10, 2010 at 00:40, Johan Herland <johan@xxxxxxxxxxx> wrote:
>  # hashlib is only available in python >= 2.5
>  try:
>      import hashlib
>      _digest = hashlib.sha1
>  except ImportError:
>      import sha
>      _digest = sha.sha
>
> so that we don't get the hideous DeprecationWarning.

This is exactly what I meant to suggest earlier, but I didn't know the
appropriate routine in python 2.4, thanks Johan.

-- 
Cheers,

Sverre Rabbelier
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]