PLUGIN_INTERFACE_VERSION = "1"
import getopt
-import md5
+import hashlib
import os
import shutil
import smtplib
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"""