Update library: requests

This commit is contained in:
Ruud committed 2014-09-03 16:47:03 +02:00
1 parent 50a150f570
commit 9e564c49b3
33 files changed
+1071 -647

No files matched your search

+2 -3
View File
@@ -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.