Use a dict for faster sysconfig startup (issue #13150)

This commit is contained in:
Antoine Pitrou 2011-10-11 16:07:30 +02:00
parent 10a99b024d
commit dc567e42f7
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ __all__ = [
# XXX _CONFIG_DIR will be set by the Makefile later
_CONFIG_DIR = os.path.normpath(os.path.dirname(__file__))
_CONFIG_FILE = os.path.join(_CONFIG_DIR, 'sysconfig.cfg')
_SCHEMES = RawConfigParser()
_SCHEMES = RawConfigParser(dict_type=dict) # Faster than OrderedDict
_SCHEMES.read(_CONFIG_FILE)
_VAR_REPL = re.compile(r'\{([^{]*?)\}')