fix httputils 10/86910/1
authorDR695H <dr695h@att.com>
Fri, 3 May 2019 15:41:14 +0000 (11:41 -0400)
committerDR695H <dr695h@att.com>
Fri, 3 May 2019 15:41:35 +0000 (11:41 -0400)
fix httputils to use six for everything

Change-Id: I52f63b9b83f07bc9691c960e7806e225f5bfb712
Issue-ID: TEST-141
Signed-off-by: DR695H <dr695h@att.com>
robotframework-onap/eteutils/HTTPUtils.py

index 624efd1..c24ebf4 100644 (file)
@@ -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)