From dc567e42f7f3c22bce09275611dfc1a4a1f7ebde Mon Sep 17 00:00:00 2001 From: Antoine Pitrou Date: Tue, 11 Oct 2011 16:07:30 +0200 Subject: [PATCH] Use a dict for faster sysconfig startup (issue #13150) --- Lib/sysconfig.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/sysconfig.py b/Lib/sysconfig.py index d07784d9670..6594104e065 100644 --- a/Lib/sysconfig.py +++ b/Lib/sysconfig.py @@ -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'\{([^{]*?)\}')