mirror of
https://github.com/ansible/awx.git
synced 2026-03-03 09:48:51 -03:30
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:
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user