From b87d26f992ef7856ee0ff7221864964db64a5386 Mon Sep 17 00:00:00 2001 From: Chris Mayo Date: Tue, 8 Nov 2022 19:21:29 +0000 Subject: [PATCH] Fix translatability of AnchorCheck directory warning --- linkcheck/checker/fileurl.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/linkcheck/checker/fileurl.py b/linkcheck/checker/fileurl.py index 39d8ab6d..1503a29d 100644 --- a/linkcheck/checker/fileurl.py +++ b/linkcheck/checker/fileurl.py @@ -357,10 +357,10 @@ class AnchorCheckFileUrl(FileUrl): if self.anchor: self.add_warning( _( - f" URL `{self.url}' is a directory with an anchor." + "URL `%s' is a directory with an anchor." " When checking local files AnchorCheck does not support" " anchors for directories." - ), + ) % self.url, tag=WARN_FILE_ANCHORCHECK_DIRECTORY, )