Skip to content

Commit 2142220

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 64448f9 commit 2142220

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

docs/html/topics/configuration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Additionally, environment variables can be specified which will override any of
3535
pip's configuration files are located in fairly standard locations. This
3636
location is different on different operating systems, and has some additional
3737
complexity for backwards compatibility reasons. Note that if user config files
38-
exist in both the legacy and current locations, values in the current file
38+
exist in both the legacy and current locations, values in the current file
3939
will override values in the legacy file.
4040

4141
```{tab} Unix

news/11815.doc.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Fix explanation of how PIP_CONFIG_FILE works
1+
Fix explanation of how PIP_CONFIG_FILE works

src/pip/_internal/configuration.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ def get_environ_vars(self) -> Iterable[Tuple[str, str]]:
327327
def iter_config_files(self) -> Iterable[Tuple[Kind, List[str]]]:
328328
"""Yields variant and configuration files associated with it.
329329
330-
This should be treated like items of a dictionary. The order
330+
This should be treated like items of a dictionary. The order
331331
here doesn't affect what gets overridden. That is controlled
332332
by OVERRIDE_ORDER. However this does control the order they are
333333
displayed to the user. It's probably most ergononmic to display
@@ -356,7 +356,6 @@ def iter_config_files(self) -> Iterable[Tuple[Kind, List[str]]]:
356356
else:
357357
yield kinds.ENV, []
358358

359-
360359
def get_values_in_config(self, variant: Kind) -> Dict[str, Any]:
361360
"""Get values present in a config file"""
362361
return self._config[variant]

0 commit comments

Comments
 (0)