From d4f6b7d8a25d5466d38e6e321689cfba8a3cb8dc Mon Sep 17 00:00:00 2001 From: Ronny Pfannschmidt Date: Wed, 29 Mar 2023 23:59:55 +0200 Subject: chore: use pathlib in hg-git tas helper --- src/setuptools_scm/hg_git.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/setuptools_scm/hg_git.py') diff --git a/src/setuptools_scm/hg_git.py b/src/setuptools_scm/hg_git.py index b3ce4b2..91f9ad1 100644 --- a/src/setuptools_scm/hg_git.py +++ b/src/setuptools_scm/hg_git.py @@ -125,7 +125,7 @@ class GitWorkdirHgClient(GitWorkdir, HgWorkdir): if not hg_tags: return _FAKE_GIT_DESCRIBE_ERROR - with open(os.path.join(self.path, ".hg/git-tags")) as fp: + with self.path.joinpath(".hg/git-tags").open() as fp: git_tags: dict[str, str] = dict(line.split()[::-1] for line in fp) tag: str -- cgit v1.2.1