summaryrefslogtreecommitdiffstats
path: root/base/common/python/pki/key.py
diff options
context:
space:
mode:
Diffstat (limited to 'base/common/python/pki/key.py')
-rw-r--r--base/common/python/pki/key.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/base/common/python/pki/key.py b/base/common/python/pki/key.py
index 7b9a463a0..83883dd31 100644
--- a/base/common/python/pki/key.py
+++ b/base/common/python/pki/key.py
@@ -28,9 +28,9 @@ from __future__ import absolute_import
from __future__ import print_function
import base64
import json
-import urllib
from six import iteritems
+from six.moves.urllib.parse import quote # pylint: disable=F0401
import pki
import pki.encoder as encoder
@@ -509,7 +509,7 @@ class KeyClient(object):
if client_key_id is None:
raise TypeError("Client Key ID must be specified")
- url = self.key_url + '/active/' + urllib.quote(client_key_id)
+ url = self.key_url + '/active/' + quote(client_key_id)
response = self.connection.get(url, headers=self.headers)
return KeyInfo.from_json(response.json())