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:
Petr Viktorin
2015-10-07 10:27:20 +02:00
committed by Jan Cholasta
parent 7f1204a42c
commit 70b37a956c
18 changed files with 77 additions and 71 deletions
+2 -2
View File
@@ -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