plugins/tower.py: Use urllib.parse rather than urlparse

urlparse does not exist in python3, it has been replaced by urllib.parse

Signed-off-by: Yanis Guenane <yguenane@redhat.com>
This commit is contained in:
Yanis Guenane 2019-03-14 11:32:42 +01:00
parent 7b570b59c6
commit 3a4f56bb2b

View File

@ -34,7 +34,11 @@ import sys
import json
import requests
from requests.auth import HTTPBasicAuth
from urlparse import urljoin
try:
from urlparse import urljoin
except ImportError:
from urllib.parse import urljoin
def parse_configuration():