X-Git-Url: https://git.sommitrealweird.co.uk/eoc.git/blobdiff_plain/955452c7da93eb4307e37cdfc1dc1c8679e92fcb..56d5da7ebafe3fd39e1a0a36f327e71e3acc72bd:/eoc.py diff --git a/eoc.py b/eoc.py index 194d040..ac89923 100644 --- a/eoc.py +++ b/eoc.py @@ -4,11 +4,11 @@ This is a simple mailing list manager that mimicks the ezmlm-idx mail address commands. See manual page for more information. """ -VERSION = "1.2.5" +VERSION = "1.2.6" PLUGIN_INTERFACE_VERSION = "1" import getopt -import md5 +import hashlib import os import shutil import smtplib @@ -78,8 +78,7 @@ COMMANDS = SIMPLE_COMMANDS + SUB_COMMANDS + HASH_COMMANDS def md5sum_as_hex(s): - return md5.new(s).hexdigest() - + return hashlib.md5(s).hexdigest() def forkexec(argv, text): """Run a command (given as argv array) and write text to its stdin"""