Avoid u-prefixed strings

linkchecker is Python 3 only, all strings are unicode.
This commit is contained in:
Marius Gedminas 2020-05-24 14:50:07 +03:00 committed by GitHub
parent f268a90cfb
commit dcafa2df75
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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: