From 493aefc09d4a22e3a8069a6a7d462f6ad6ad4cb5 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:17:38 +0200 Subject: [PATCH] six: changed offlineimap/CustomConfig.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/CustomConfig.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/offlineimap/CustomConfig.py b/offlineimap/CustomConfig.py index f4af64a..59da078 100644 --- a/offlineimap/CustomConfig.py +++ b/offlineimap/CustomConfig.py @@ -18,7 +18,6 @@ import os import re from sys import exc_info from configparser import SafeConfigParser, Error -import six from offlineimap.localeval import LocalEval @@ -71,10 +70,8 @@ class CustomConfigParser(SafeConfigParser): val = self.get(section, option).strip() return re.split(separator_re, val) except re.error as e: - six.reraise(Error, - Error("Bad split regexp '%s': %s" % - (separator_re, e)), - exc_info()[2]) + raise Error("Bad split regexp '%s': %s" % + (separator_re, e), exc_info()[2]) def getdefaultlist(self, section, option, default, separator_re): """Same as getlist, but returns the value of `default`