On Tue, Mar 12, 2013 at 09:04:05AM -0300, Lucas Meneghel Rodrigues wrote:
> >+AUTOTEST_CACHE_DIR = '/var/cache/autotest'
> >+BKR_CACHE = AUTOTEST_CACHE_DIR + '/beaker_job.cache'
> >+
> >+if sys.version_info < (2, 5):
> >+    import md5
> >+    def getMD5Constructor():
> >+        return md5.new
> >+else:
> >+    import hashlib
> >+    def getMD5Constructor():
> >+        return hashlib.md5
> 
> ^ We have a wrapper for sha1 and md5 functions
> 
> autotest.client.shared.utils.hash()
> 
> Similar in purpose to this getMD5Constructor function.

Nice. Thanks!

Cheers,
Don

_______________________________________________
Autotest-kernel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/autotest-kernel

Reply via email to