python 3 compatibility: import guard around ConfigParser

In python3 `ConfigParser` has become `configparser`. Added
an import guard that aliases it back to the old name.

(cherry picked from commit bc9dbf38b0)
pull/25409/head
James Elford 9 years ago committed by Toshio Kuratomi
parent 8bfc36db6e
commit db121421a6

@ -138,9 +138,13 @@ import sys
import re
import argparse
from time import time
import ConfigParser
import ast
try:
import ConfigParser
except ImportError:
import configparser as ConfigParser
try:
import json
except ImportError:

Loading…
Cancel
Save