diff options
Diffstat (limited to 'robotframework-onap/eteutils')
-rw-r--r-- | robotframework-onap/eteutils/HTTPUtils.py | 6 |
1 files changed, 3 insertions, 3 deletions
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) |