Merge pull request #1672 from pypa/disable-host-mount

feat: Adds disable_host_mount suboption to container-engine
This commit is contained in:
Joe Rickerby
2024-01-20 19:05:12 +00:00
committed by GitHub
10 changed files with 107 additions and 22 deletions
+2 -2
View File
@@ -738,7 +738,7 @@ def parse_key_value_string(
# split by semicolon
fields = [list(group) for k, group in itertools.groupby(parts, lambda x: x == ";") if not k]
result: dict[str, list[str]] = defaultdict(list)
result: defaultdict[str, list[str]] = defaultdict(list)
for field_i, field in enumerate(fields):
# check to see if the option name is specified
field_name, sep, first_value = field[0].partition(":")
@@ -759,4 +759,4 @@ def parse_key_value_string(
result[field_name] += values
return result
return dict(result)