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.
This commit is contained in:
parent
9aaac16d17
commit
88be07d5de
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user