mirror of
https://github.com/ansible/awx.git
synced 2026-03-24 20:35:02 -02: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 json
|
||||||
import requests
|
import requests
|
||||||
from requests.auth import HTTPBasicAuth
|
from requests.auth import HTTPBasicAuth
|
||||||
from urlparse import urljoin
|
|
||||||
|
try:
|
||||||
|
from urlparse import urljoin
|
||||||
|
except ImportError:
|
||||||
|
from urllib.parse import urljoin
|
||||||
|
|
||||||
|
|
||||||
def parse_configuration():
|
def parse_configuration():
|
||||||
|
|||||||
Reference in New Issue
Block a user