mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Use a dict for faster sysconfig startup (issue #13150)
This commit is contained in:
parent
10a99b024d
commit
dc567e42f7
1 changed files with 1 additions and 1 deletions
|
@ -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'\{([^{]*?)\}')
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue