changeset: 72854:ed0bc92fed68 user: Antoine Pitrou date: Tue Oct 11 16:07:30 2011 +0200 files: Lib/sysconfig.py description: Use a dict for faster sysconfig startup (issue #13150) diff -r df950158dc33 -r ed0bc92fed68 Lib/sysconfig.py --- a/Lib/sysconfig.py Tue Oct 11 15:45:56 2011 +0200 +++ b/Lib/sysconfig.py Tue Oct 11 16:07:30 2011 +0200 @@ -24,7 +24,7 @@ # 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'\{([^{]*?)\}')