From 8ad85420e45ffeafb536de55b31ad68c0d03c986 Mon Sep 17 00:00:00 2001 From: DR695H Date: Fri, 3 May 2019 11:41:14 -0400 Subject: fix httputils fix httputils to use six for everything Change-Id: I52f63b9b83f07bc9691c960e7806e225f5bfb712 Issue-ID: TEST-141 Signed-off-by: DR695H --- robotframework-onap/eteutils/HTTPUtils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'robotframework-onap') diff --git a/robotframework-onap/eteutils/HTTPUtils.py b/robotframework-onap/eteutils/HTTPUtils.py index 624efd1..c24ebf4 100644 --- a/robotframework-onap/eteutils/HTTPUtils.py +++ b/robotframework-onap/eteutils/HTTPUtils.py @@ -1,6 +1,6 @@ from six.moves.urllib.parse import urlparse +from six.moves import urllib -import urllib import urllib3 @@ -9,7 +9,7 @@ class HTTPUtils: def url_encode_string(self, barestring): """URL Encode String takes in a string and converts into 'percent-encoded' string""" - return urllib.quote_plus(barestring) + return urllib.parse.quote_plus(barestring) def disable_warnings(self): """ Disable the cert warnings when creating sessions for A&AI API Calls """ @@ -17,4 +17,4 @@ class HTTPUtils: def url_parse(self, url): """ Get pieces of the URL """ - return urlparse.urlparse(url) \ No newline at end of file + return urlparse(url) -- cgit