Update library: requests
This commit is contained in:
1 parent
50a150f570
commit
9e564c49b3
33 files changed
+1071
-647
No files matched your search
@@ -34,10 +34,9 @@ def assert_fingerprint(cert, fingerprint):
|
||||
}
|
||||
|
||||
fingerprint = fingerprint.replace(':', '').lower()
|
||||
digest_length, odd = divmod(len(fingerprint), 2)
|
||||
|
||||
digest_length, rest = divmod(len(fingerprint), 2)
|
||||
|
||||
if rest or digest_length not in hashfunc_map:
|
||||
if odd or digest_length not in hashfunc_map:
|
||||
raise SSLError('Fingerprint is of invalid length.')
|
||||
|
||||
# We need encode() here for py32; works on py2 and p33.
|
||||
|
||||
Reference in new issue
Block a user