mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2026-09-03 20:52:56 -05:00
Use six.moves.urllib instead of urllib/urllib2/urlparse
In Python 3, these modules are reorganized. Reviewed-By: David Kupka <dkupka@redhat.com> Reviewed-By: Jan Cholasta <jcholast@redhat.com> Reviewed-By: Martin Basti <mbasti@redhat.com>
This commit is contained in:
committed by
Jan Cholasta
parent
7f1204a42c
commit
70b37a956c
+2
-2
@@ -25,10 +25,10 @@ from dns.exception import DNSException
|
||||
from ipapython.dn import DN
|
||||
from ipaplatform.paths import paths
|
||||
import dns.name
|
||||
from six.moves.urllib.parse import urlsplit
|
||||
|
||||
import socket
|
||||
import re
|
||||
import urlparse
|
||||
|
||||
class IPAConfigError(Exception):
|
||||
def __init__(self, msg=''):
|
||||
@@ -163,7 +163,7 @@ def __parse_config(discover_server = True):
|
||||
if discover_server:
|
||||
try:
|
||||
s = p.get("global", "xmlrpc_uri")
|
||||
server = urlparse.urlsplit(s)
|
||||
server = urlsplit(s)
|
||||
config.default_server.append(server.netloc)
|
||||
except:
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user