From 9123cb83fcedb0e16d8f0d7883bd7ddc489bbe61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodolfo=20Garc=C3=ADa=20Pe=C3=B1as=20=28kix=29?= Date: Thu, 3 Sep 2020 20:44:08 +0200 Subject: [PATCH] Remove md5 import MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The library md5 is only for python2, hashlib is used in python3 Signed-off-by: Rodolfo García Peñas (kix) --- offlineimap/folder/Maildir.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/offlineimap/folder/Maildir.py b/offlineimap/folder/Maildir.py index 1d2a2eb..f275436 100644 --- a/offlineimap/folder/Maildir.py +++ b/offlineimap/folder/Maildir.py @@ -21,12 +21,7 @@ import re import os from sys import exc_info from threading import Lock - -try: - from hashlib import md5 -except ImportError: - from md5 import md5 - +from hashlib import md5 from offlineimap import OfflineImapError, emailutil from .Base import BaseFolder