diff options
author | Lance Stout <lancestout@gmail.com> | 2014-06-08 19:59:40 -0700 |
---|---|---|
committer | Lance Stout <lancestout@gmail.com> | 2014-06-08 19:59:40 -0700 |
commit | 60b050b82a474e2fcecd17bfe04469f0e2db3c30 (patch) | |
tree | 7dcf13b5bf10d6a3c46bab446b398ad479ba1347 | |
parent | ad91a8cd5ebff56ee0cb84edbc7f0574e9c19911 (diff) | |
download | slixmpp-60b050b82a474e2fcecd17bfe04469f0e2db3c30.tar.gz slixmpp-60b050b82a474e2fcecd17bfe04469f0e2db3c30.tar.bz2 slixmpp-60b050b82a474e2fcecd17bfe04469f0e2db3c30.tar.xz slixmpp-60b050b82a474e2fcecd17bfe04469f0e2db3c30.zip |
Make ssl args work in Python <=2.6.4
-rw-r--r-- | sleekxmpp/xmlstream/xmlstream.py | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/sleekxmpp/xmlstream/xmlstream.py b/sleekxmpp/xmlstream/xmlstream.py index 064b52dc..c5c9fe38 100644 --- a/sleekxmpp/xmlstream/xmlstream.py +++ b/sleekxmpp/xmlstream/xmlstream.py @@ -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): |