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:
parent
4e1558adc3
commit
6321a66287
@ -21,9 +21,6 @@ import netrc
|
|||||||
import errno
|
import errno
|
||||||
from sys import exc_info
|
from sys import exc_info
|
||||||
from threading import Event
|
from threading import Event
|
||||||
|
|
||||||
import six
|
|
||||||
|
|
||||||
from offlineimap import folder, imaputil, imapserver, OfflineImapError
|
from offlineimap import folder, imaputil, imapserver, OfflineImapError
|
||||||
from offlineimap.repository.Base import BaseRepository
|
from offlineimap.repository.Base import BaseRepository
|
||||||
from offlineimap.threadutil import ExitNotifyThread
|
from offlineimap.threadutil import ExitNotifyThread
|
||||||
@ -127,12 +124,11 @@ class IMAPRepository(BaseRepository):
|
|||||||
try:
|
try:
|
||||||
host = self.localeval.eval(host)
|
host = self.localeval.eval(host)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
six.reraise(OfflineImapError,
|
raise OfflineImapError(
|
||||||
OfflineImapError(
|
"remotehosteval option for repository "
|
||||||
"remotehosteval option for repository "
|
"'%s' failed:\n%s" % (self, e),
|
||||||
"'%s' failed:\n%s" % (self, e),
|
OfflineImapError.ERROR.REPO,
|
||||||
OfflineImapError.ERROR.REPO),
|
exc_info()[2])
|
||||||
exc_info()[2])
|
|
||||||
if host:
|
if host:
|
||||||
self._host = host
|
self._host = host
|
||||||
return self._host
|
return self._host
|
||||||
|
Loading…
Reference in New Issue
Block a user