summaryrefslogtreecommitdiff
path: root/server/src/leap
diff options
context:
space:
mode:
authorVictor Shyba <victor.shyba@gmail.com>2015-10-27 13:58:56 -0300
committerVictor Shyba <victor.shyba@gmail.com>2015-10-29 16:50:07 -0300
commit3b869fb7ffedc88c738e0a17347b9506d242cabe (patch)
tree5702f87c2e0ce84a7d1a344b1b00387e994bce28 /server/src/leap
parentbc8e8bea61b01e0b93593e24a816574f5a19ac61 (diff)
[feat] remove SSL tsafe monkeypatch
This was added for a Twisted 12 bug that should be gone by now.
Diffstat (limited to 'server/src/leap')
-rw-r--r--server/src/leap/soledad/server/__init__.py13
1 files changed, 0 insertions, 13 deletions
diff --git a/server/src/leap/soledad/server/__init__.py b/server/src/leap/soledad/server/__init__.py
index fe67e45f..618ccb2b 100644
--- a/server/src/leap/soledad/server/__init__.py
+++ b/server/src/leap/soledad/server/__init__.py
@@ -94,12 +94,6 @@ from u1db.remote import http_app, utils
from ._version import get_versions
-# Keep OpenSSL's tsafe before importing Twisted submodules so we can put
-# it back if Twisted==12.0.0 messes with it.
-from OpenSSL import tsafe
-
-from twisted import version
-
from leap.soledad.server.auth import SoledadTokenAuthMiddleware
from leap.soledad.server.gzip_middleware import GzipMiddleware
from leap.soledad.server.lock_resource import LockResource
@@ -112,13 +106,6 @@ from leap.soledad.server.sync import (
from leap.soledad.common import SHARED_DB_NAME
from leap.soledad.common.couch import CouchServerState
-old_tsafe = tsafe
-
-if version.base() == "12.0.0":
- # Put OpenSSL's tsafe back into place. This can probably be removed if we
- # come to use Twisted>=12.3.0.
- sys.modules['OpenSSL.tsafe'] = old_tsafe
-
# ----------------------------------------------------------------------------
# Soledad WSGI application
# ----------------------------------------------------------------------------