Python's md5 module is deprecated. The hashlib module replaces it.
PLUGIN_INTERFACE_VERSION = "1"
import getopt
PLUGIN_INTERFACE_VERSION = "1"
import getopt
import os
import shutil
import smtplib
import os
import shutil
import smtplib
- 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"""
def forkexec(argv, text):
"""Run a command (given as argv array) and write text to its stdin"""