Skip to content

Commit bbcbfc6

Browse files
authored
Avoid deprecation warning from Tomli (#10238)
1 parent e752b1a commit bbcbfc6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pip/_internal/pyproject.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def load_pyproject_toml(
6060

6161
if has_pyproject:
6262
with open(pyproject_toml, encoding="utf-8") as f:
63-
pp_toml = tomli.load(f)
63+
pp_toml = tomli.loads(f.read())
6464
build_system = pp_toml.get("build-system")
6565
else:
6666
build_system = None

0 commit comments

Comments
 (0)