From 2abcac9925b7711b11898eda350aa3fecc70a2c6 Mon Sep 17 00:00:00 2001 From: dmiller Date: Mon, 30 Dec 2019 06:57:04 +0000 Subject: [PATCH] Don't bother maintaining compat with Python 2.5. #1834 --- zenmap/zenmapCore/UmitDB.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/zenmap/zenmapCore/UmitDB.py b/zenmap/zenmapCore/UmitDB.py index c3111d52b..158737962 100644 --- a/zenmap/zenmapCore/UmitDB.py +++ b/zenmap/zenmapCore/UmitDB.py @@ -128,12 +128,7 @@ import sys -try: - import hashlib - md5 = hashlib.md5 -except ImportError: - import md5 - md5 = md5.new +from hashlib import md5 sqlite = None try: