mirror of
https://github.com/ansible/awx.git
synced 2026-01-15 20:00:43 -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:
parent
7b570b59c6
commit
3a4f56bb2b
@ -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():
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user