mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-03-25 08:55:50 +00:00
Convert to tuple before passing to requests
Requests accesses the cert tuple like this:
if isinstance(cert, basestring):
a = cert
else:
a = cert[0]
b = cert[1]
On Python 3, map doesn't return a list, so (theoretically) this would
fail.
This commit is contained in:
parent
114c73537e
commit
33d9d7d93e
1 changed files with 1 additions and 1 deletions
|
|
@ -41,7 +41,7 @@ def prepare_client_cert(cert):
|
|||
if isinstance(cert, (text_type, bytes)):
|
||||
cert = expand_path(cert)
|
||||
elif isinstance(cert, list):
|
||||
cert = map(prepare_client_cert, cert)
|
||||
cert = tuple(map(prepare_client_cert, cert))
|
||||
return cert
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue