environment fingerprint

Chris Angelico rosuav at gmail.com
Wed Jan 30 01:18:41 CET 2013


On Wed, Jan 30, 2013 at 10:33 AM, Jabba Laci <jabba.laci at gmail.com> wrote:
>     if md5:
>         md5 = hashlib.md5()
>         md5.update(text)
>         return md5.hexdigest()

Simpler:
if md5:
    return hashlib.md5(text).hexdigest()

ChrisA



More information about the Python-list mailing list