From 6321a662872a21b6e433ad31a6782e35e1225da1 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 21:03:58 +0200 Subject: [PATCH] six: changed offlineimap/repository/IMAP.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This patch removes the library six, compatible with python2. I need change this re-raise call. Signed-off-by: Rodolfo García Peñas (kix) --- offlineimap/repository/IMAP.py | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/offlineimap/repository/IMAP.py b/offlineimap/repository/IMAP.py index 0fa0cda..60888f9 100644 --- a/offlineimap/repository/IMAP.py +++ b/offlineimap/repository/IMAP.py @@ -21,9 +21,6 @@ import netrc import errno from sys import exc_info from threading import Event - -import six - from offlineimap import folder, imaputil, imapserver, OfflineImapError from offlineimap.repository.Base import BaseRepository from offlineimap.threadutil import ExitNotifyThread @@ -127,12 +124,11 @@ class IMAPRepository(BaseRepository): try: host = self.localeval.eval(host) except Exception as e: - six.reraise(OfflineImapError, - OfflineImapError( - "remotehosteval option for repository " - "'%s' failed:\n%s" % (self, e), - OfflineImapError.ERROR.REPO), - exc_info()[2]) + raise OfflineImapError( + "remotehosteval option for repository " + "'%s' failed:\n%s" % (self, e), + OfflineImapError.ERROR.REPO, + exc_info()[2]) if host: self._host = host return self._host