From 799febf73e03c3bddfcbef472aa5dcff051523a3 Mon Sep 17 00:00:00 2001 From: kairat_kushaev Date: Fri, 15 Jan 2016 16:29:27 +0300 Subject: Remove monkey-patching for getsockopt Not getsocketopts is presented in GreenSocket for Linux. See the bug for the info. So we don't need to patch it anymore. Closes-Bug: #1348269 Change-Id: Ie2211238656eddfb0af5f3ef84ab638f6248a10a --- glanceclient/common/https.py | 5 ----- 1 file changed, 5 deletions(-) (limited to 'glanceclient/common/https.py') diff --git a/glanceclient/common/https.py b/glanceclient/common/https.py index 032cde7..d2991cd 100644 --- a/glanceclient/common/https.py +++ b/glanceclient/common/https.py @@ -33,17 +33,12 @@ import six # NOTE(jokke): simplified transition to py3, behaves like py2 xrange from six.moves import range -from glanceclient.common import utils - try: from eventlet import patcher # Handle case where we are running in a monkey patched environment if patcher.is_monkey_patched('socket'): from eventlet.green.httplib import HTTPSConnection from eventlet.green.OpenSSL.SSL import GreenConnection as Connection - from eventlet.greenio import GreenSocket - # TODO(mclaren): A getsockopt workaround: see 'getsockopt' doc string - GreenSocket.getsockopt = utils.getsockopt else: raise ImportError except ImportError: -- cgit v1.2.1