mirror of https://github.com/pypa/pip
🔥 Get rid of _make_key
This commit is contained in:
parent
8262a83e05
commit
07439a9aaa
|
@ -44,10 +44,6 @@ def _disassemble_key(name):
|
|||
return name.split(".", 1)
|
||||
|
||||
|
||||
def _make_key(variant, name):
|
||||
return ".".join((variant, name))
|
||||
|
||||
|
||||
# The kinds of configurations there are.
|
||||
kinds = enum(USER="user", GLOBAL="global", VENV="venv", ENV="environement")
|
||||
|
||||
|
@ -261,8 +257,7 @@ class Configuration(object):
|
|||
"""
|
||||
normalized = {}
|
||||
for name, val in items:
|
||||
key = _make_key(section, _normalize_name(name))
|
||||
|
||||
key = section + "." + _normalize_name(name)
|
||||
normalized[key] = val
|
||||
return normalized
|
||||
|
||||
|
|
Loading…
Reference in New Issue