from six.moves.urllib.parse import urlparse
+from six.moves import urllib
-import urllib
import urllib3
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 """
def url_parse(self, url):
""" Get pieces of the URL """
- return urlparse.urlparse(url)
\ No newline at end of file
+ return urlparse(url)