summaryrefslogtreecommitdiffstats
path: root/scripts/devtool
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/devtool')
-rwxr-xr-xscripts/devtool6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/devtool b/scripts/devtool
index 9ac6e798d2..4dbb527bc7 100755
--- a/scripts/devtool
+++ b/scripts/devtool
@@ -22,7 +22,7 @@ import os
22import argparse 22import argparse
23import glob 23import glob
24import re 24import re
25import ConfigParser 25import configparser
26import subprocess 26import subprocess
27import logging 27import logging
28 28
@@ -51,12 +51,12 @@ class ConfigHandler(object):
51 51
52 def __init__(self, filename): 52 def __init__(self, filename):
53 self.config_file = filename 53 self.config_file = filename
54 self.config_obj = ConfigParser.SafeConfigParser() 54 self.config_obj = configparser.SafeConfigParser()
55 55
56 def get(self, section, option, default=None): 56 def get(self, section, option, default=None):
57 try: 57 try:
58 ret = self.config_obj.get(section, option) 58 ret = self.config_obj.get(section, option)
59 except (ConfigParser.NoOptionError, ConfigParser.NoSectionError): 59 except (configparser.NoOptionError, configparser.NoSectionError):
60 if default != None: 60 if default != None:
61 ret = default 61 ret = default
62 else: 62 else: