Skip to content

Commit af43e13

Browse files
authored
Drive by split() limit to improve performance
1 parent 85eea44 commit af43e13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pip/_internal/commands/debug.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ def show_tags(options: Values) -> None:
136136
def ca_bundle_info(config: Configuration) -> str:
137137
# Ruff misidentifies config as a dict.
138138
# Configuration does not have support the mapping interface.
139-
levels = {key.split(".")[0] for key, _ in config.items()} # noqa: PERF102
139+
levels = {key.split(".", 1)[0] for key, _ in config.items()} # noqa: PERF102
140140
if not levels:
141141
return "Not specified"
142142

0 commit comments

Comments
 (0)