From a922ab3103c36830f1b9149a1887f6c8a1f516ec 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:27:04 +0200 Subject: [PATCH] six: changed offlineimap/folder/LocalStatus.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 these re-raise calls. Signed-off-by: Rodolfo García Peñas (kix) --- offlineimap/folder/LocalStatus.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/offlineimap/folder/LocalStatus.py b/offlineimap/folder/LocalStatus.py index 43e6073..d1e2eb8 100644 --- a/offlineimap/folder/LocalStatus.py +++ b/offlineimap/folder/LocalStatus.py @@ -18,8 +18,6 @@ from sys import exc_info import os import threading -import six - from .Base import BaseFolder @@ -71,7 +69,7 @@ class LocalStatusFolder(BaseFolder): errstr = ("Corrupt line '%s' in cache file '%s'" % (line, self.filename)) self.ui.warn(errstr) - six.reraise(ValueError, ValueError(errstr), exc_info()[2]) + raise ValueError(errstr, exc_info()[2]) self.messagelist[uid] = self.msglist_item_initializer(uid) self.messagelist[uid]['flags'] = flags @@ -94,7 +92,7 @@ class LocalStatusFolder(BaseFolder): errstr = "Corrupt line '%s' in cache file '%s'" % \ (line, self.filename) self.ui.warn(errstr) - six.reraise(ValueError, ValueError(errstr), exc_info()[2]) + raise ValueError(errstr, exc_info()[2]) self.messagelist[uid] = self.msglist_item_initializer(uid) self.messagelist[uid]['flags'] = flags self.messagelist[uid]['mtime'] = mtime