Show More
@@ -139,12 +139,18 b' def _hostsettings(ui, hostname):' | |||||
139 |
|
139 | |||
140 | alg, fingerprint = fingerprint.split(b':', 1) |
|
140 | alg, fingerprint = fingerprint.split(b':', 1) | |
141 | fingerprint = fingerprint.replace(b':', b'').lower() |
|
141 | fingerprint = fingerprint.replace(b':', b'').lower() | |
|
142 | # pytype: disable=attribute-error | |||
|
143 | # `s` is heterogeneous, but this entry is always a list of tuples | |||
142 | s[b'certfingerprints'].append((alg, fingerprint)) |
|
144 | s[b'certfingerprints'].append((alg, fingerprint)) | |
|
145 | # pytype: enable=attribute-error | |||
143 |
|
146 | |||
144 | # Fingerprints from [hostfingerprints] are always SHA-1. |
|
147 | # Fingerprints from [hostfingerprints] are always SHA-1. | |
145 | for fingerprint in ui.configlist(b'hostfingerprints', bhostname): |
|
148 | for fingerprint in ui.configlist(b'hostfingerprints', bhostname): | |
146 | fingerprint = fingerprint.replace(b':', b'').lower() |
|
149 | fingerprint = fingerprint.replace(b':', b'').lower() | |
|
150 | # pytype: disable=attribute-error | |||
|
151 | # `s` is heterogeneous, but this entry is always a list of tuples | |||
147 | s[b'certfingerprints'].append((b'sha1', fingerprint)) |
|
152 | s[b'certfingerprints'].append((b'sha1', fingerprint)) | |
|
153 | # pytype: enable=attribute-error | |||
148 | s[b'legacyfingerprint'] = True |
|
154 | s[b'legacyfingerprint'] = True | |
149 |
|
155 | |||
150 | # If a host cert fingerprint is defined, it is the only thing that |
|
156 | # If a host cert fingerprint is defined, it is the only thing that |
@@ -27,7 +27,6 b' mercurial/minirst.py # [unsuppo' | |||||
27 | mercurial/pure/osutil.py # [invalid-typevar], [not-callable] |
|
27 | mercurial/pure/osutil.py # [invalid-typevar], [not-callable] | |
28 | mercurial/pure/parsers.py # [attribute-error] |
|
28 | mercurial/pure/parsers.py # [attribute-error] | |
29 | mercurial/repoview.py # [attribute-error] |
|
29 | mercurial/repoview.py # [attribute-error] | |
30 | mercurial/sslutil.py # [attribute-error] |
|
|||
31 | mercurial/testing/storage.py # tons of [attribute-error] |
|
30 | mercurial/testing/storage.py # tons of [attribute-error] | |
32 | mercurial/ui.py # [attribute-error], [wrong-arg-types] |
|
31 | mercurial/ui.py # [attribute-error], [wrong-arg-types] | |
33 | mercurial/unionrepo.py # ui, svfs, unfiltered [attribute-error] |
|
32 | mercurial/unionrepo.py # ui, svfs, unfiltered [attribute-error] | |
@@ -59,7 +58,6 b' development, but may be a hinderance for' | |||||
59 | > -x mercurial/pure/osutil.py \ |
|
58 | > -x mercurial/pure/osutil.py \ | |
60 | > -x mercurial/pure/parsers.py \ |
|
59 | > -x mercurial/pure/parsers.py \ | |
61 | > -x mercurial/repoview.py \ |
|
60 | > -x mercurial/repoview.py \ | |
62 | > -x mercurial/sslutil.py \ |
|
|||
63 | > -x mercurial/testing/storage.py \ |
|
61 | > -x mercurial/testing/storage.py \ | |
64 | > -x mercurial/thirdparty \ |
|
62 | > -x mercurial/thirdparty \ | |
65 | > -x mercurial/ui.py \ |
|
63 | > -x mercurial/ui.py \ |
General Comments 0
You need to be logged in to leave comments.
Login now