Index: cfe/trunk/tools/scan-view/share/ScanView.py =================================================================== --- cfe/trunk/tools/scan-view/share/ScanView.py +++ cfe/trunk/tools/scan-view/share/ScanView.py @@ -16,7 +16,10 @@ import itertools import Reporter -import ConfigParser +try: + import configparser +except ImportError: + import ConfigParser as configparser ### # Various patterns matched or replaced by server. @@ -126,7 +129,7 @@ self.load_config() def load_config(self): - self.config = ConfigParser.RawConfigParser() + self.config = configparser.RawConfigParser() # Add defaults self.config.add_section('ScanView') Index: cfe/trunk/utils/check_cfc/check_cfc.py =================================================================== --- cfe/trunk/utils/check_cfc/check_cfc.py +++ cfe/trunk/utils/check_cfc/check_cfc.py @@ -56,7 +56,10 @@ import subprocess import sys import tempfile -import ConfigParser +try: + import configparser +except ImportError: + import ConfigParser as configparser import io import obj_diff @@ -318,7 +321,7 @@ for c in checks: default_config += "{} = false\n".format(c) - config = ConfigParser.RawConfigParser() + config = configparser.RawConfigParser() config.readfp(io.BytesIO(default_config)) scriptdir = get_main_dir() config_path = os.path.join(scriptdir, 'check_cfc.cfg')