Remove unnecessary commas before closing brackets in linkcheck/

This commit is contained in:
Chris Mayo 2020-05-30 17:01:36 +01:00
parent a92a684ac4
commit b9f4864d9e
4 changed files with 4 additions and 4 deletions

View file

@ -158,7 +158,7 @@ class HttpUrl(internpaturl.InternPatternUrl, proxysupport.ProxySupport):
clientheaders = {}
if self.parent_url and self.parent_url.lower().startswith(HTTP_SCHEMAS):
clientheaders["Referer"] = self.parent_url
kwargs = dict(method='GET', url=self.url, headers=clientheaders,)
kwargs = dict(method='GET', url=self.url, headers=clientheaders)
if self.auth:
kwargs['auth'] = self.auth
log.debug(LOG_CHECK, "Prepare request with %s", kwargs)

View file

@ -261,7 +261,7 @@ class Configuration(dict):
LOG_CHECK, _("missing user or URL pattern in authentication data.")
)
return
entry = dict(user=user, password=password, pattern=re.compile(pattern),)
entry = dict(user=user, password=password, pattern=re.compile(pattern))
self["authentication"].append(entry)
def get_user_password(self, url):

View file

@ -30,7 +30,7 @@ def x509_to_dict(x509):
res = {
'subject': ((('commonName', x509.get_subject().CN),),),
'subjectAltName': [('DNS', value) for value in get_subj_alt_name(x509)],
'subjectAltName': [('DNS', value) for value in get_subj_alt_name(x509)]
}
notAfter = x509.get_notAfter()
if notAfter is not None:

View file

@ -46,7 +46,7 @@ Fields = dict(
)
del _
ContentTypes = dict(image=0, text=0, video=0, audio=0, application=0, mail=0, other=0,)
ContentTypes = dict(image=0, text=0, video=0, audio=0, application=0, mail=0, other=0)
class LogStatistics: