diff options
| author | Jenkins <jenkins@review.openstack.org> | 2015-02-02 04:49:32 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2015-02-02 04:49:32 +0000 |
| commit | 4bfd8d5097737799ad364b0b2f58c88421f0ea61 (patch) | |
| tree | 90adcd0f428f0573bf96053d0fd255721f435725 /glanceclient/common/https.py | |
| parent | 93c9bc1fe0ae3f5c95395e7a883fdffcc79d7151 (diff) | |
| parent | b818826420a383e733ec40881ff436595ca57cc8 (diff) | |
| download | python-glanceclient-4bfd8d5097737799ad364b0b2f58c88421f0ea61.tar.gz | |
Merge "Remove openstack.common.strutils"
Diffstat (limited to 'glanceclient/common/https.py')
| -rw-r--r-- | glanceclient/common/https.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/glanceclient/common/https.py b/glanceclient/common/https.py index 6baa6af..186b3ac 100644 --- a/glanceclient/common/https.py +++ b/glanceclient/common/https.py @@ -14,6 +14,7 @@ # under the License. import socket +import ssl import struct import OpenSSL @@ -25,8 +26,8 @@ except ImportError: from urllib3 import connectionpool from urllib3 import poolmanager +from oslo.utils import encodeutils import six -import ssl from glanceclient.common import utils @@ -50,7 +51,6 @@ except ImportError: from glanceclient import exc -from glanceclient.openstack.common import strutils def to_bytes(s): @@ -81,7 +81,7 @@ class HTTPSAdapter(adapters.HTTPAdapter): # NOTE(flaper87): Make sure the url is encoded, otherwise # python's standard httplib will fail with a TypeError. url = super(HTTPSAdapter, self).request_url(request, proxies) - return strutils.safe_encode(url) + return encodeutils.safe_encode(url) def cert_verify(self, conn, url, verify, cert): super(HTTPSAdapter, self).cert_verify(conn, url, verify, cert) |
