diff options
author | DR695H <dr695h@att.com> | 2019-05-03 11:41:14 -0400 |
---|---|---|
committer | DR695H <dr695h@att.com> | 2019-05-03 11:41:35 -0400 |
commit | 8ad85420e45ffeafb536de55b31ad68c0d03c986 (patch) | |
tree | 8af55df8eca3e0faa5edd4bbe582feb970892ca3 /robotframework-onap/eteutils | |
parent | ef56483ad2ca455da7dbc613e58ac6ca6794717a (diff) |
fix httputils
fix httputils to use six for everything
Change-Id: I52f63b9b83f07bc9691c960e7806e225f5bfb712
Issue-ID: TEST-141
Signed-off-by: DR695H <dr695h@att.com>
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) |