From 88be07d5def0c04e49a1afe8e2cc9ccd8e1adb3a Mon Sep 17 00:00:00 2001 From: Martin Zimmermann Date: Tue, 7 Oct 2014 12:09:41 +0200 Subject: [PATCH] import backports.configparser before configparser, #128 backports.configparser got a major rewrite and an upgrade from 3.3 to 3.5 imports the wrong configparser module on Python 2.6/2.7. Hopefully, this commit makes it work again. Alternatively, you can remove the old configparser module(s): rm lib/python2.7/site-packages/configparser* And re-install configparser from PyPi. --- isso/core.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/isso/core.py b/isso/core.py index 0672f54..f98e1cb 100644 --- a/isso/core.py +++ b/isso/core.py @@ -9,7 +9,11 @@ import threading import multiprocessing from email.utils import parseaddr, formataddr -from configparser import ConfigParser + +try: + from backports.configparser import ConfigParser +except ImportError: + from configparser import ConfigParser try: import uwsgi