[pypy-commit] pypy py3k: CPython defines OP_ALL differently, see CPython Issue #13885.
amauryfa
noreply at buildbot.pypy.org
Sun Oct 7 21:33:39 CEST 2012
Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch: py3k
Changeset: r57869:02860bde5a0f
Date: 2012-10-07 10:56 +0200
http://bitbucket.org/pypy/pypy/changeset/02860bde5a0f/
Log: CPython defines OP_ALL differently, see CPython Issue #13885.
diff --git a/pypy/module/_ssl/interp_ssl.py b/pypy/module/_ssl/interp_ssl.py
--- a/pypy/module/_ssl/interp_ssl.py
+++ b/pypy/module/_ssl/interp_ssl.py
@@ -61,7 +61,7 @@
constants["PROTOCOL_TLSv1"] = PY_SSL_VERSION_TLS1
# protocol options
-constants["OP_ALL"] = SSL_OP_ALL
+constants["OP_ALL"] = SSL_OP_ALL & ~SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS
constants["OP_NO_SSLv2"] = SSL_OP_NO_SSLv2
constants["OP_NO_SSLv3"] = SSL_OP_NO_SSLv3
constants["OP_NO_TLSv1"] = SSL_OP_NO_TLSv1
More information about the pypy-commit
mailing list