From dcafa2df75cbf25a508cbc10ba6f140a7c48cdc8 Mon Sep 17 00:00:00 2001 From: Marius Gedminas Date: Sun, 24 May 2020 14:50:07 +0300 Subject: [PATCH] Avoid u-prefixed strings linkchecker is Python 3 only, all strings are unicode. --- linkcheck/checker/httpurl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linkcheck/checker/httpurl.py b/linkcheck/checker/httpurl.py index 1062f13b..5aa08e01 100644 --- a/linkcheck/checker/httpurl.py +++ b/linkcheck/checker/httpurl.py @@ -295,7 +295,7 @@ class HttpUrl(internpaturl.InternPatternUrl, proxysupport.ProxySupport): tag=WARN_HTTP_EMPTY_CONTENT) if self.url_connection.status_code == 429: - self.add_warning(u"Rate limited (Retry-After: %s)" % self.getheader(_("Retry-After")), + self.add_warning("Rate limited (Retry-After: %s)" % self.getheader(_("Retry-After")), tag=WARN_URL_RATE_LIMITED) if self.url_connection.status_code >= 200: