# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-import sys, getopt, colorsys, imp, md5, re, pprint
+import sys, getopt, colorsys, imp, re, pprint
+from hashlib import md5
from os import popen, getuid # for finding C extension dependencies with system calls
from pwd import getpwuid
else:
return mod_name[:i]
def _color_from_name(self,name):
- n = md5.md5(name).digest()
+ n = md5(name).digest()
hf = float(ord(n[0])+ord(n[1])*0xff)/0xffff
sf = float(ord(n[2]))/0xff
vf = float(ord(n[3]))/0xff