mercurial/sslutil.py
branchstable
changeset 27688 6c7d26cef0cd
parent 26622 9e15286609ae
child 28525 dfb21c34e07d
--- a/mercurial/sslutil.py	Mon Jan 04 21:21:59 2016 +0100
+++ b/mercurial/sslutil.py	Fri Jan 08 16:27:25 2016 +0100
@@ -35,7 +35,7 @@
         # maintainers for us, but that breaks too many things to
         # do it in a hurry.
         sslcontext = ssl.SSLContext(ssl.PROTOCOL_SSLv23)
-        sslcontext.options &= ssl.OP_NO_SSLv2 & ssl.OP_NO_SSLv3
+        sslcontext.options |= ssl.OP_NO_SSLv2 | ssl.OP_NO_SSLv3
         if certfile is not None:
             def password():
                 f = keyfile or certfile