Make ssl args work in Python <=2.6.4
This commit is contained in:
parent
ad91a8cd5e
commit
60b050b82a
1 changed files with 10 additions and 10 deletions
|
@ -519,11 +519,11 @@ class XMLStream(object):
|
|||
cert_policy = ssl.CERT_REQUIRED
|
||||
|
||||
ssl_args = {
|
||||
'certfile': self.certfile,
|
||||
'keyfile': self.keyfile,
|
||||
'ca_certs': self.ca_certs,
|
||||
'cert_reqs': cert_policy,
|
||||
'do_handshake_on_connect': False,
|
||||
b'certfile': self.certfile,
|
||||
b'keyfile': self.keyfile,
|
||||
b'ca_certs': self.ca_certs,
|
||||
b'cert_reqs': cert_policy,
|
||||
b'do_handshake_on_connect': False,
|
||||
}
|
||||
|
||||
if sys.version_info >= (2, 7):
|
||||
|
@ -843,11 +843,11 @@ class XMLStream(object):
|
|||
cert_policy = ssl.CERT_REQUIRED
|
||||
|
||||
ssl_args = {
|
||||
'certfile': self.certfile,
|
||||
'keyfile': self.keyfile,
|
||||
'ca_certs': self.ca_certs,
|
||||
'cert_reqs': cert_policy,
|
||||
'do_handshake_on_connect': False,
|
||||
b'certfile': self.certfile,
|
||||
b'keyfile': self.keyfile,
|
||||
b'ca_certs': self.ca_certs,
|
||||
b'cert_reqs': cert_policy,
|
||||
b'do_handshake_on_connect': False,
|
||||
}
|
||||
|
||||
if sys.version_info >= (2, 7):
|
||||
|
|
Loading…
Reference in a new issue