six: changed offlineimap/repository/IMAP.py

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) <kix@kix.es>
This commit is contained in:
Rodolfo García Peñas (kix) 2020-09-03 21:03:58 +02:00
parent 4e1558adc3
commit 6321a66287

View File

@ -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,11 +124,10 @@ class IMAPRepository(BaseRepository):
try:
host = self.localeval.eval(host)
except Exception as e:
six.reraise(OfflineImapError,
OfflineImapError(
raise OfflineImapError(
"remotehosteval option for repository "
"'%s' failed:\n%s" % (self, e),
OfflineImapError.ERROR.REPO),
OfflineImapError.ERROR.REPO,
exc_info()[2])
if host:
self._host = host