summaryrefslogtreecommitdiffstats
path: root/ipapython
diff options
context:
space:
mode:
Diffstat (limited to 'ipapython')
-rw-r--r--ipapython/dogtag.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/ipapython/dogtag.py b/ipapython/dogtag.py
index eb1f73eee..37e7a5892 100644
--- a/ipapython/dogtag.py
+++ b/ipapython/dogtag.py
@@ -188,9 +188,7 @@ def _httplib_request(
Perform a HTTP(s) request.
"""
- if isinstance(host, unicode):
- host = host.encode('utf-8')
- uri = '%s://%s%s' % (protocol, ipautil.format_netloc(host, port), path)
+ uri = u'%s://%s%s' % (protocol, ipautil.format_netloc(host, port), path)
root_logger.debug('request %s %s', method, uri)
root_logger.debug('request body %r', request_body)