Skip to content

Commit

Permalink
rename internal variable to match corresponding property
Browse files Browse the repository at this point in the history
  • Loading branch information
radoering committed Apr 3, 2023
1 parent 4d22b85 commit 9a22da4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/poetry/core/pyproject/toml.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]:
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 9a22da4

Please sign in to comment.