[Freeipa-devel] [PATCH] jderose 044 Add sha1, md5 to compat
Rob Crittenden
rcritten at redhat.com
Fri Feb 12 22:20:53 UTC 2010
Rob Crittenden wrote:
> Jason Gerard DeRose wrote:
>> This patch adds `sha1` and `md5` classes to the `compat` module. These
>> will work in Python 2.4 - 2.5 without raising a `DeprecationWarning`.
>>
>
> I wonder if we should import both the name sha and sha1. If we did that
> we could modify ipauuid to import from compat directly. This would be
> nicer too because it shortens the diffs from the upstream uuid.py.
>
> The reason we have our own local copy is partly due to the fact that
> uuid.py imports ctypes which is not at all SELinux friendly. That and so
> we can work on Python 2.4 systems.
>
> rob
>
Ok, as Jason suggested, we can do something like:
from compat import sha1 as sha
ack, pushed to master
More information about the Freeipa-devel
mailing list