summaryrefslogtreecommitdiffstats
path: root/Lib/sysconfig.py
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2011-10-11 14:07:30 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2011-10-11 14:07:30 (GMT)
commitdc567e42f7f3c22bce09275611dfc1a4a1f7ebde (patch)
tree92ce788d1c699f9c11f1929f4a9b4788fd4b9e74 /Lib/sysconfig.py
parent10a99b024df0d30911b198146d0206c8f6d0d6c7 (diff)
downloadcpython-dc567e42f7f3c22bce09275611dfc1a4a1f7ebde.zip
cpython-dc567e42f7f3c22bce09275611dfc1a4a1f7ebde.tar.gz
cpython-dc567e42f7f3c22bce09275611dfc1a4a1f7ebde.tar.bz2
Use a dict for faster sysconfig startup (issue #13150)
Diffstat (limited to 'Lib/sysconfig.py')
-rw-r--r--Lib/sysconfig.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/sysconfig.py b/Lib/sysconfig.py
index d07784d..6594104 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'\{([^{]*?)\}')