mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-28 18:14:42 +00:00
Remove unnecessary commas before closing brackets in linkcheck/
This commit is contained in:
parent
a92a684ac4
commit
b9f4864d9e
4 changed files with 4 additions and 4 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue