From dfce2688fd543d27e3df14553874cbd0c220e51b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Randy=20D=C3=B6ring?= <30527984+radoering@users.noreply.github.com> Date: Mon, 3 Apr 2023 11:41:59 +0200 Subject: [PATCH] rename internal variable to match corresponding property --- src/poetry/core/pyproject/toml.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/poetry/core/pyproject/toml.py b/src/poetry/core/pyproject/toml.py index 25de85d4d..45a2d9d87 100644 --- a/src/poetry/core/pyproject/toml.py +++ b/src/poetry/core/pyproject/toml.py @@ -14,13 +14,13 @@ class PyProjectTOML: def __init__(self, path: Path) -> None: - self._file = path + self._path = path self._data: dict[str, Any] | None = None self._build_system: BuildSystem | None = None @property def path(self) -> Path: - return self._file + return self._path @property def data(self) -> dict[str, Any]: @@ -66,7 +66,7 @@ def poetry_config(self) -> dict[str, Any]: from poetry.core.pyproject.exceptions import PyProjectException raise PyProjectException( - f"[tool.poetry] section not found in {self._file.as_posix()}" + f"[tool.poetry] section not found in {self._path.as_posix()}" ) from e def is_poetry_project(self) -> bool: