diff options
Diffstat (limited to 'sphinx/testing/comparer.py')
-rw-r--r-- | sphinx/testing/comparer.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/testing/comparer.py b/sphinx/testing/comparer.py index 8b2ec8892..4ea57a575 100644 --- a/sphinx/testing/comparer.py +++ b/sphinx/testing/comparer.py @@ -36,7 +36,7 @@ class PathComparer: return self.path.as_posix() def __repr__(self) -> str: - return "<{0.__class__.__name__}: '{0}'>".format(self) + return f"<{self.__class__.__name__}: '{self}'>" def __eq__(self, other: str | pathlib.Path) -> bool: # type: ignore return not bool(self.ldiff(other)) |